jsonxt

Jsonxt - JSON parsers for files, strings and more
IN THIS PACKAGE
Module Jsonxt . Yojson . Safe
type json = [
| `Null
| `Bool of bool
| `Int of int
| `Intlit of string
| `Float of float
| `String 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:Buffer.t -> ?fname:string -> ?lnum:int -> string -> t
val from_channel : ?buf:Buffer.t -> ?fname:string -> ?lnum:int -> in_channel -> t
val from_file : ?buf:Buffer.t -> ?fname:string -> ?lnum:int -> string -> t
val from_lexbuf : lexer_state -> ?stream:bool -> Lexing.lexbuf -> t
val stream_from_string : ?buf:Buffer.t -> ?fname:string -> ?lnum:int -> string -> t Stream.t
val stream_from_channel : ?buf:Buffer.t -> ?fin:( unit -> unit ) -> ?fname:string -> ?lnum:int -> in_channel -> t Stream.t
val stream_from_file : ?buf:Buffer.t -> ?fname:string -> ?lnum:int -> string -> t Stream.t
val stream_from_lexbuf : lexer_state -> ?fin:( unit -> unit ) -> Lexing.lexbuf -> t Stream.t
val linestream_from_channel : ?buf:Buffer.t -> ?fin:( unit -> unit ) -> ?fname:string -> ?lnum:int -> in_channel -> json_line Stream.t
val linestream_from_file : ?buf:Buffer.t -> ?fname:string -> ?lnum:int -> string -> json_line Stream.t
val read_t : lexer_state -> Lexing.lexbuf -> t
val to_string : ?buf:Buffer.t -> ?len:int -> ?std:bool -> t -> string
val to_channel : ?buf:Buffer.t -> ?len:int -> ?std:bool -> out_channel -> t -> unit
val to_file : ?len:int -> ?std:bool -> string -> t -> unit
val to_outbuf : ?std:bool -> Buffer.t -> t -> unit
val to_output : ?buf:Buffer.t -> ?len:int -> ?std:bool -> < output : string -> int -> int -> 'a.. > -> t -> 'a
val stream_to_string : ?buf:Buffer.t -> ?len:int -> ?std:bool -> t Stream.t -> string
val stream_to_channel : ?buf:Buffer.t -> ?len:int -> ?std:bool -> out_channel -> t Stream.t -> unit
val stream_to_file : ?len:int -> ?std:bool -> string -> t Stream.t -> unit
val stream_to_outbuf : ?std:bool -> Buffer.t -> t Stream.t -> unit
val write_t : Buffer.t -> t -> unit
val pretty_print : ?std:bool -> Format.formatter -> t -> unit
val pretty_to_string : ?std:bool -> t -> string
val pretty_to_channel : ?std:bool -> 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 : Format.formatter -> t -> unit
val to_basic : t -> Basic.json
module Util : sig ... end