/usr/lib/ocaml/yojson/write2.mli is in libyojson-ocaml-dev 1.3.2-1build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | (** {2 JSON pretty-printing} *)
val pretty_format : ?std:bool -> json -> Easy_format.t
(** Convert into a pretty-printable tree.
See [to_string] for the role of the optional [std] argument.
@see <http://martin.jambon.free.fr/easy-format.html> Easy-format
*)
val pretty_print : ?std:bool -> Format.formatter -> json -> unit
(** Pretty-print into a {!Format.formatter}.
See [to_string] for the role of the optional [std] argument.
@since 1.3.1 *)
val pretty_to_string : ?std:bool -> json -> string
(** Pretty-print into a string.
See [to_string] for the role of the optional [std] argument.
*)
val pretty_to_channel : ?std:bool -> out_channel -> json -> unit
(** Pretty-print to a channel.
See [to_string] for the role of the optional [std] argument.
*)
|