package jsonxt

  1. Overview
  2. Docs
type json = Json.Basic.json
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 equal : t -> t -> bool
val sort : t -> t
val show : t -> string
val pp : Format.formatter -> t -> unit
module Util : sig ... end
OCaml

Innovation. Community. Security.