package json-data-encoding-bson

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Pre-instanciated Json_encoding.Make.

type repr_value = bson
val construct : ?include_default_fields:[ `Always | `Auto | `Never ] -> 't Json_encoding.encoding -> 't -> repr_value

Same as construct for a custom JSON representation.

val destruct : ?ignore_extra_fields:bool -> ?bson_relaxation:bool -> 't Json_encoding.encoding -> repr_value -> 't

Same as destruct for a custom JSON representation.

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

Same as custom for a custom JSON representation.

OCaml

Innovation. Community. Security.