package json-data-encoding

  1. Overview
  2. Docs

Module Json_encoding.MakeSource

Parameters

Signature

Sourcetype repr_value = 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.