Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type t = [
| `Array of t Batteries.Vect.t
| `Bool of bool
| `Float of float
| `Int of int
| `Null
| `Object of (string, t) Batteries.Map.t
| `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
module Operators : sig ... end
val from_string :
?options:parser_option list ->
?ofs:int ->
?len:int ->
?pinned:bool ->
string ->
t
val from_file : ?options:parser_option list -> string -> t
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