package json-data-encoding
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Type-safe encoding to and decoding from JSON
Install
dune-project
Dependency
Authors
Maintainers
Sources
json-data-encoding-0.11.tar.gz
md5=80dd53c56b44d5696d8542ac7013a768
sha512=63894b9fa49b450445bbe125f81e0336dd0e59e23e6875cab4344c727ef454ee126b4344815d653332ccca7e8b9e80b0f272e5d407091d0b4f59426dc46a7994
Description
Published: 11 Jan 2022
README
json-data-encoding
This library is a collection of type-aware JSON utilities for OCaml.
Json_encodingcontains an'a encodingtype that represents the JSON encoding of OCaml values of type'a, and a collection of combinators to build them. These encodings can be used to serialize / deserialize OCaml values to / from JSON documents. JSON schemas can also be generated automatically to produce documented, interoperable JSON formats.Json_schemacontains an OCaml intermediate representation for the JSON schema document grammar description language, along with translators to / from the concrete JSON schema format.Json_querycontains various utilities to manipulate, introspect and update JSON data.Json_reprdefines an abstraction over JSON representations. This module is mainly useful when using the functorial interface of the library, or if you use several JSON libraries in your program and want to convert data from one JSON representation to another.
The type of JSON documents handled by this library is directly compatible with ezjsonm, but converters are provided for yojson users, and an advanced functorial interface allows you to use any JSON representation. Two other representations are also provided.
Json_repr_browserinterfaces JavaScripts objects. It is available only when compiling to JavaScript viajs_of_ocaml. Provided by the extra packagejson-data-encoding-browser.Json_repr_bsonis an implementation of a subset of BSON. Provided by the extra packagejson-data-encoding-bson.
Thanks to polymorphic variants, this library does not depend on any JSON library, so you are free to use whichever you want for printing and parsing.
Used by (10)
-
bechamel-js
>= "0.3.0" - compsort
-
data-encoding
>= "0.4" & < "0.7" -
ez_api
< "2.1.0" -
goblint
>= "2.0.0" -
json-data-encoding-browser
= "0.11" -
json-data-encoding-bson
= "0.11" -
ppx_deriving_encoding
>= "0.2.2" -
resto
>= "1.0" -
resto-json
>= "1.0"
Conflicts
None
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page