Proto.UnknownUnknown fields for preserving extra JSON object members during round-tripping.
This module provides an opaque type for storing unknown JSON fields as an association list. This is useful for preserving fields that are not part of the defined schema but should be maintained when reading and writing JSON.
The opaque type of unknown fields, stored as an association list of field names to JSON values.
val empty : tempty is an empty set of unknown fields.
val is_empty : t -> boolis_empty t returns true if there are no unknown fields stored in t.
val of_assoc : (string * Jsont.json) list -> tof_assoc assoc creates unknown fields from an association list.
val to_assoc : t -> (string * Jsont.json) listto_assoc t returns the association list of unknown fields.
val mems : (t, Jsont.json, Jsont.mem list) Jsont.Object.Mems.mapmems is a mems codec for use with Jsont.Object.keep_unknown.