1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
(** {2 JSON pretty-printing} *)
val pretty_print : ?std:bool -> Format.formatter -> t -> unit
(** Pretty-print into a {!Format.formatter}.
See [to_string] for the role of the optional [std] argument.
@raise Json_error if [float] value is not allowed in standard JSON.
@since 1.3.1 *)
val pretty_to_string : ?std:bool -> t -> string
(** Pretty-print into a string.
See [to_string] for the role of the optional [std] argument.
See [pretty_print] for raised exceptions.
*)
val pretty_to_channel : ?std:bool -> out_channel -> t -> unit
(** Pretty-print to a channel.
See [to_string] for the role of the optional [std] argument.
See [pretty_print] for raised exceptions.
*)
|