Module Jsont_typegist.Jsont

Custom Jsont.t value metadata key.

If a gist or field defines a value for this key, the Jsont_typegist.to_jsont function uses it as the derived Jsont.t value.

Using a JSON type that always (de)serizalizes null maps with a constant value like Jsont.ignore does can also be used to indicate that a value should not be serialized.

type 'a t = 'a Jsont.t

See Jsont.t.

val ignore : 'a -> 'a t

ignore is Jsont.null.

val mem : ('a, 'b) Typegist__meta.t2 -> bool
val add : 'b t -> ('a, 'b) Typegist__meta.t2 -> ('a, 'b) Typegist__meta.t2
val find : ('a, 'b) Typegist__meta.t2 -> 'b t option
val remove : ('a, 'b) Typegist__meta.t2 -> ('a, 'b) Typegist__meta.t2