package jsonoo

  1. Overview
  2. Docs

Module JsonooSource

include Ojs.T
Sourcetype js := Ojs.t
Sourcetype t
Sourceval t_to_js : t -> js
Sourceval t_of_js : js -> t
Sourceexception Decode_error of string
Sourceval try_parse_opt : string -> t option

Try to parse the string into JSON, return Some if successful, None otherwise

Sourceval try_parse_exn : string -> t

Try to parse the string into JSON, raise Decode_error if it fails

Sourceval stringify : ?spaces:int -> t -> string

Use JSON.stringify to turn JSON into a string. Specify spaces to control the indentation size.

Sourcemodule Decode : sig ... end
Sourcemodule Encode : sig ... end
Sourcemodule type S = sig ... end
Sourcemodule Make (T : Ojs.T) : S with type t = T.t
OCaml

Innovation. Community. Security.