package atdgen

  1. Overview
  2. Docs

Module Ag_jsonSource

Sourcetype json_float = [
  1. | `Float of int option
  2. | `Int
]
Sourcetype json_list = [
  1. | `Array
  2. | `Object
]
Sourcetype json_variant = {
  1. json_cons : string option;
}
Sourcetype json_field = {
  1. json_fname : string;
  2. json_tag_field : string option;
  3. json_unwrapped : bool;
}
Sourcetype json_repr = [
  1. | `Bool
  2. | `Cell
  3. | `Def
  4. | `External
  5. | `Field of json_field
  6. | `Float of json_float
  7. | `Int
  8. | `List of json_list
  9. | `Nullable
  10. | `Option
  11. | `Record
  12. | `String
  13. | `Sum
  14. | `Tuple
  15. | `Unit
  16. | `Variant of json_variant
  17. | `Wrap
]
Sourceval get_json_list : Atd_annot.t -> json_list
Sourceval get_json_float : Atd_annot.t -> json_float
Sourceval get_json_cons : string -> Atd_annot.t -> string
Sourceval get_json_fname : string -> Atd_annot.t -> string
Sourceval get_json_tag_field : Atd_annot.t -> string option
Sourceval get_json_untyped : Atd_annot.t -> bool
OCaml

Innovation. Community. Security.