package jsonoo

  1. Overview
  2. Docs
JSON library for Js_of_ocaml

Install

Dune Dependency

Authors

Maintainers

Sources

jsonoo-v0.2.1.tbz
sha256=dbd2f7a3b1585fa3530c51f68c6b8a8189fd1c05cbefeccc6231be7cccd7d16f
sha512=54877815d314cb97d33d21c841acdbea88835d40a37a6356878f9b539f79983a14a0f5f56a984d6e6e5ef803f542fd59c17fbba54ec1c9b1d767c63065c92176

doc/jsonoo/Jsonoo/index.html

Module JsonooSource

Sourcetype t = private < > Js_of_ocaml.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

Compatibility with gen_js_api

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

Innovation. Community. Security.