Module Web_json
include module type of struct include Js.Json end
type t
type t = Js_json.t
type kind
type !'a kind = 'a Js_json.kind =
type tagged_t
type tagged_t = Js_json.tagged_t =
val classify
val classify : t -> tagged_t
val test
val test : 'a -> 'b kind -> bool
val decodeString
val decodeString : t -> Js_string.t option
val decodeNumber
val decodeNumber : t -> float option
val decodeObject
val decodeObject : t -> t Js_dict.t option
val decodeArray
val decodeArray : t -> t array option
val decodeBoolean
val decodeBoolean : t -> bool option
val decodeNull
val decodeNull : t -> 'a Js_null.t option
val string
val string : string -> t
val number
val number : float -> t
val boolean
val boolean : bool -> t
val object_
val object_ : t Js_dict.t -> t
val array
val array : t array -> t
val stringArray
val stringArray : string array -> t
val numberArray
val numberArray : float array -> t
val booleanArray
val booleanArray : bool array -> t
val objectArray
val objectArray : t Js_dict.t array -> t
val parseExn
val parseExn : string -> t
val stringifyWithSpace
val stringifyWithSpace : t -> int -> string
val stringifyAny
val stringifyAny : 'a -> string option
val deserializeUnsafe
val deserializeUnsafe : string -> 'a
val serializeExn
val serializeExn : 'a -> string
type nothingYet
type nothingYet
val stringify
val stringify : 't -> nothingYet Js.null -> int -> string
val string_of_json
val string_of_json : ?indent:int -> 'a Js.Undefined.t -> string
val of_type
val of_type : 'a kind -> 'a0 -> t
val null
val null : Js_types.null_val