Module Yojson.Raw

type json = [
| `Null
| `Bool of bool
| `Intlit of string
| `Floatlit of string
| `Stringlit of string
| `Assoc of (string * json) list
| `List of json list
| `Tuple of json list
| `Variant of string * json option
]
type t = json
type json_line = [
| `Json of t
| `Exn of exn
]
val from_string : ?⁠buf:Stdlib.Buffer.t -> ?⁠fname:string -> ?⁠lnum:int -> string -> t
val from_channel : ?⁠buf:Stdlib.Buffer.t -> ?⁠fname:string -> ?⁠lnum:int -> Stdlib.in_channel -> t
val from_file : ?⁠buf:Stdlib.Buffer.t -> ?⁠fname:string -> ?⁠lnum:int -> string -> t
val from_lexbuf : lexer_state -> ?⁠stream:bool -> Stdlib.Lexing.lexbuf -> t
val stream_from_string : ?⁠buf:Stdlib.Buffer.t -> ?⁠fname:string -> ?⁠lnum:int -> string -> t Stdlib.Stream.t
val stream_from_channel : ?⁠buf:Stdlib.Buffer.t -> ?⁠fin:(unit -> unit) -> ?⁠fname:string -> ?⁠lnum:int -> Stdlib.in_channel -> t Stdlib.Stream.t
val stream_from_file : ?⁠buf:Stdlib.Buffer.t -> ?⁠fname:string -> ?⁠lnum:int -> string -> t Stdlib.Stream.t
val stream_from_lexbuf : lexer_state -> ?⁠fin:(unit -> unit) -> Stdlib.Lexing.lexbuf -> t Stdlib.Stream.t
val linestream_from_channel : ?⁠buf:Stdlib.Buffer.t -> ?⁠fin:(unit -> unit) -> ?⁠fname:string -> ?⁠lnum:int -> Stdlib.in_channel -> json_line Stdlib.Stream.t
val linestream_from_file : ?⁠buf:Stdlib.Buffer.t -> ?⁠fname:string -> ?⁠lnum:int -> string -> json_line Stdlib.Stream.t
val read_t : lexer_state -> Stdlib.Lexing.lexbuf -> t
val to_string : ?⁠buf:Stdlib.Buffer.t -> ?⁠len:int -> ?⁠std:bool -> t -> string
val to_channel : ?⁠buf:Stdlib.Buffer.t -> ?⁠len:int -> ?⁠std:bool -> Stdlib.out_channel -> t -> unit
val to_file : ?⁠len:int -> ?⁠std:bool -> string -> t -> unit
val to_outbuf : ?⁠std:bool -> Stdlib.Buffer.t -> t -> unit
val to_output : ?⁠buf:Stdlib.Buffer.t -> ?⁠len:int -> ?⁠std:bool -> < output : string -> int -> int -> 'a; .. > -> t -> 'a
val stream_to_string : ?⁠buf:Stdlib.Buffer.t -> ?⁠len:int -> ?⁠std:bool -> t Stdlib.Stream.t -> string
val stream_to_channel : ?⁠buf:Stdlib.Buffer.t -> ?⁠len:int -> ?⁠std:bool -> Stdlib.out_channel -> t Stdlib.Stream.t -> unit
val stream_to_file : ?⁠len:int -> ?⁠std:bool -> string -> t Stdlib.Stream.t -> unit
val stream_to_outbuf : ?⁠std:bool -> Stdlib.Buffer.t -> t Stdlib.Stream.t -> unit
val write_t : Stdlib.Buffer.t -> t -> unit
val pretty_print : ?⁠std:bool -> Stdlib.Format.formatter -> t -> unit
val pretty_to_string : ?⁠std:bool -> t -> string
val pretty_to_channel : ?⁠std:bool -> Stdlib.out_channel -> t -> unit
val prettify : ?⁠std:bool -> string -> string
val compact : ?⁠std:bool -> string -> string
val sort : t -> t
val equal : t -> t -> bool
val show : t -> string
val pp : Stdlib.Format.formatter -> t -> unit