package ezjsonm-encoding

  1. Overview
  2. Docs
Encoding combinators a la Data_encoding for Ezjsonm

Install

Dune Dependency

Authors

Maintainers

Sources

ezjsonm-encoding-2.0.0.tbz
sha256=7b938f71b6d02ebd7a00d14d6798b5d0b8e51e0c1c453098872bce855936db22
sha512=6ed40eabfc335e4619873dae832c5ce0e35acd425014adc13f47e39d980c5972a2490c3781d4edfb4e4ed829f64a7831890a296ae13c8d0c208f5972e44a48d5

Description

Published: 14 Jan 2024

README

ezjsonm-encoding

ezjsonm-encoding is an encoding combinators library for Ezjsonm whose API is heavily inspired by data-encoding.

The two main differences between ezjsonm-encoding and the JSON support of data-encoding are:

  • objN combinators accept JSON objects with more fields than the one explicitely specified in the encoding.

  • ezjsonm-encoding does not have a dependency to Zarith (which depends on GMP). As a consequence, ezjsonm-encoding does not provide support for big numbers out of the box.

ezjsonm-encoding is packaged and build with Dune. A Makefile is provided for convinience purposes.

# Install the minimum to build the library
make build-deps
# Install development dependencies as well
make build-dev-deps

In both cases, a local switch is created. Use the variable OCAML_COMPILER to control which compiler is installed (defaults to ocaml-system).

Dependencies (3)

  1. ezjsonm >= "1.2.0"
  2. ocaml >= "4.8.0"
  3. dune >= "3.0"

Dev Dependencies (1)

  1. odoc with-doc

Used by

None

Conflicts

None