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

data-encoding-v1.0.1.tar.gz
md5=82d6e7783274595c82cff4562e2b06a2
sha512=df5d00dfef8afeada8a6aee2a97d491a2ce20cfe90aed203848f6098ba05ba60e2ee9d1afc0c6c07cf32dad3f8e34c0b55cf900ef1f2e7a72d704f07fd32e651

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.