Module Jsont_typegist.Meta

Metadata for customizing to_jsont.

TODO We need a special meta for fields so that we can have two parameters and specify a Jsont.Mem.map.

Specifies a JSON type to use instead of the derivation.

See Example.

Object members

module Mem_map : Typegist.Type.Gist.Meta.KEY with type ('a, 'b) value := ('a, 'b) Jsont.Object.Mem.map

If this key is specified on a product field. The definition is used of the field.

module Mem_enc_omit : Typegist.Type.Gist.Meta.KEY with type ('o, 'a) value := 'a -> bool

If this key is specified and Mem_map is not specified this is used for the enc_omit parameter of the member map.

module Mem_name : Typegist.Type.Gist.Meta.KEY with type ('o, 'a) value := string

If this key is specified and Mem_map is not specified this is used for the member name of the member map.

module Jsont : Typegist.Type.Gist.Meta.KEY with type ('a, 'b) value := 'a Jsont.t

If this key is specified on a type gist. The definition is used for the type.