module Yojson:sig
..end
val version : string
exception Json_error of string
val json_error : string -> 'a
type
lexer_state = {
|
buf : |
(* |
Buffer used to accumulate substrings
| *) |
|
mutable lnum : |
(* |
Current line number (counting from 1)
| *) |
|
mutable bol : |
(* |
Absolute position of the first character of the current line
(counting from 0)
| *) |
|
mutable fname : |
(* |
Name referencing the input file in error messages
| *) |
module Lexer_state:sig
..end
val init_lexer : ?buf:Bi_outbuf.t -> ?fname:string -> ?lnum:int -> unit -> lexer_state
val write_null : Bi_outbuf.t -> unit -> unit
val write_bool : Bi_outbuf.t -> bool -> unit
val write_int : Bi_outbuf.t -> int -> unit
val write_float : Bi_outbuf.t -> float -> unit
val write_std_float : Bi_outbuf.t -> float -> unit
val write_float_fast : Bi_outbuf.t -> float -> unit
val write_std_float_fast : Bi_outbuf.t -> float -> unit
val write_float_prec : int -> Bi_outbuf.t -> float -> unit
val write_std_float_prec : int -> Bi_outbuf.t -> float -> unit
val write_string : Bi_outbuf.t -> string -> unit
val write_intlit : Bi_outbuf.t -> string -> unit
val write_floatlit : Bi_outbuf.t -> string -> unit
val write_stringlit : Bi_outbuf.t -> string -> unit
val write_assoc : Bi_outbuf.t -> (string * json) list -> unit
val write_list : Bi_outbuf.t -> json list -> unit
val write_tuple : Bi_outbuf.t -> json list -> unit
val write_std_tuple : Bi_outbuf.t -> json list -> unit
val write_variant : Bi_outbuf.t -> string -> json option -> unit
val write_std_variant : Bi_outbuf.t -> string -> json option -> unit
val write_json : Bi_outbuf.t -> json -> unit
val write_std_json : Bi_outbuf.t -> json -> unit
val pretty_format : ?std:bool -> json -> Easy_format.t
to_string
for the role of the optional std
argument.val pretty_to_string : ?std:bool -> json -> string
to_string
for the role of the optional std
argument.val pretty_to_channel : ?std:bool -> Pervasives.out_channel -> json -> unit
to_string
for the role of the optional std
argument.