package atdgen

  1. Overview
  2. Docs
type json_float = [
  1. | `Float of int option
  2. | `Int
]
type json_list = [
  1. | `Array
  2. | `Object
]
type json_variant = {
  1. json_cons : string;
}
type json_field = {
  1. json_fname : string;
  2. json_tag_field : string option;
  3. json_unwrapped : bool;
}
type 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
]
val json_float_of_string : string -> [ `Float | `Int ] option
val json_precision_of_string : string -> int option option
val get_json_precision : Atd_annot.t -> int option
val get_json_float : Atd_annot.t -> json_float
val json_list_of_string : string -> json_list option
val get_json_list : Atd_annot.t -> json_list
val get_json_cons : string -> Atd_annot.t -> string
val get_json_fname : string -> Atd_annot.t -> string
val get_json_tag_field : Atd_annot.t -> string option
OCaml

Innovation. Community. Security.