Jsont_typegist.MetaMetadata 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.
module Mem_map :
Typegist.Type.Gist.Meta.KEY
with type ('a, 'b) value := ('a, 'b) Jsont.Object.Mem.mapIf 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 -> boolIf 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 := stringIf 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.tIf this key is specified on a type gist. The definition is used for the type.