package jsonoo

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = private < > Js_of_ocaml.Js.t
exception Decode_error of string
val stringify : t -> string

Use JSON.stringify to turn JSON into a string

val try_parse_opt : string -> t option

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

val try_parse_exn : string -> t

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

module Decode : sig ... end
module Encode : sig ... end

Compatibility with gen_js_api

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

Innovation. Community. Security.