package json-data-encoding

  1. Overview
  2. Docs
Type-safe encoding to and decoding from JSON

Install

Dune Dependency

Authors

Maintainers

Sources

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

doc/json-data-encoding/Json_encoding/module-type-S/index.html

Module type Json_encoding.SSource

Sourcetype repr_value
Sourceval construct : ?include_default_fields:[ `Always | `Auto | `Never ] -> 't encoding -> 't -> repr_value

Same as construct for a custom JSON representation.

Sourceval destruct : ?ignore_extra_fields:bool -> ?bson_relaxation:bool -> 't encoding -> repr_value -> 't

Same as destruct for a custom JSON representation.

Sourceval custom : ?is_object:bool -> ('t -> repr_value) -> (repr_value -> 't) -> schema:Json_schema.schema -> 't encoding

Same as custom for a custom JSON representation.

OCaml

Innovation. Community. Security.