package json-data-encoding-browser

  1. Overview
  2. Docs
Type-safe encoding to and decoding from JSON (browser support)

Install

Dune Dependency

Authors

Maintainers

Sources

json-data-encoding-0.10.tar.gz
md5=5e38f6cfb3dffe652e98b8d38905376f
sha512=50a7e8bd7036c1c48b4132ba34301df7e4011c619177fed28ec96bffce99acb228dc4fe6fc24bff313b9ae3ba5c6da424189e6a8220b87c918ea20d08e1caca2

doc/json-data-encoding-browser/Json_repr_browser/index.html

Module Json_repr_browserSource

Sourcetype value

An abstract type for native browser objects.

Sourcemodule Repr : Json_repr.Repr with type value = value

A view over the browser representation.

Pre-instanciated Json_encoding.Make.

Sourcemodule Json_query : sig ... end

Pre-instanciated Json_encoding.Make.

Sourceval parse : string -> value

Parse a JSON string using the native browser parser.

Sourceval stringify : ?indent:int -> value -> string

Produce a JSON string using the native browser printer.

If indent is not present, everything is printed on a single line. Otherwise, it is the number (up to 10) of spaces inserted at beginning of lines for each indentation level.

Same as parse with native browser strings.

Sourceval js_stringify : ?indent:int -> value -> Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t

Same as stringify with native browser strings.

OCaml

Innovation. Community. Security.