package jsonxt

  1. Overview
  2. Docs
type json = [
  1. | `Null
  2. | `Bool of bool
  3. | `Intlit of string
  4. | `Floatlit of string
  5. | `Stringlit of string
  6. | `Assoc of (string * json) list
  7. | `List of json list
  8. | `Tuple of json list
  9. | `Variant of string * json option
]
type t = json
type json_line = [
  1. | `Json of t
  2. | `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
OCaml

Innovation. Community. Security.