package yajl-extra

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = [
  1. | `Array of t Batteries.Vect.t
  2. | `Bool of bool
  3. | `Float of float
  4. | `Int of int
  5. | `Null
  6. | `Object of (string, t) Batteries.Map.t
  7. | `String of string
]
val empty : t
exception Type_mismatch of string * t
exception No_key of string * t
val bool : t -> bool
val int : t -> int
val float : t -> float
val float' : t -> float
val number : t -> [ `Float of float | `Int of int ]
val string : t -> string
val obj : t -> (string, t) Batteries.Map.t
val obj_or_null : t -> [ `Null | `Object of (string, t) Batteries.Map.t ]
val obj_keys : t -> string list
val array : t -> t Batteries.Vect.t
val array_length : t -> int
val of_assoc : (string * t) list -> t
val of_list : t list -> t
val of_array : t array -> t
module Operators : sig ... end
type parser_option = [
  1. | `Allow_comments
  2. | `Allow_trailing_garbage
  3. | `Dont_validate_strings
]
val from_string : ?options:parser_option list -> ?ofs:int -> ?len:int -> ?pinned:bool -> string -> t
val from_file : ?options:parser_option list -> string -> t
type intermediate
val make_parser : ?options:parser_option list -> unit -> intermediate YAJL.parser
val complete_parse : intermediate YAJL.parser -> t
val to_string : ?options:YAJL.gen_option list -> t -> string
val to_file : ?options:YAJL.gen_option list -> string -> t -> unit
val generate : YAJL.gen -> t -> unit
OCaml

Innovation. Community. Security.