package jsonoo

  1. Overview
  2. Docs

Module Jsonoo.MakeSource

Parameters

module T : Ojs.T

Signature

include Ojs.T with type t = T.t
type js := Ojs.t
Sourcetype t = T.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
OCaml

Innovation. Community. Security.