package jsonoo

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module JsonooSource

Sourcetype t = private < > Js_of_ocaml.Js.t
Sourceexception Decode_error of string
Sourceval stringify : t -> string

Use JSON.stringify to turn JSON into a 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

Sourcemodule Decode : sig ... end
Sourcemodule Encode : sig ... end

Compatibility with gen_js_api

Sourceval t_of_js : Ojs.t -> t
Sourceval t_to_js : t -> Ojs.t
OCaml

Innovation. Community. Security.