piqilib

The Piqi library -- runtime support for multi-format Protobuf/JSON/XML/Piq data serialization and conversion
Library piqilib
module C = Piqi_common
val error_duplicate : 'a -> string -> 'b
val handle_unknown_field : (string * 'a) -> unit
val parse_int : json -> [> `int of int64 | `uint of int64 ]
val parse_float : json -> float
val parse_bool : json -> bool
val parse_string : json -> string
val parse_binary : json -> string
val parse_obj : C.T.piqtype -> json -> Piqobj.obj
val parse_any : json -> Piqobj.any
val do_parse_record : [> `Assoc of (string * Piqi_json_type.json) list ] -> C.T.Piqi_impl_piqi.record -> (string * Piqi_json_type.json) list -> Piqobj.record
val parse_field : [> `Assoc of (string * Piqi_json_type.json) list ] -> (Piqobj.Piqobj.field list * (string * Piqi_json_type.json) list) -> Piqi_impl_piqi.Piqi_impl_piqi.field -> Piqobj.Piqobj.field list * (string * Piqi_json_type.json) list
val do_parse_field : [> `Assoc of (string * Piqi_json_type.json) list ] -> Piqi_impl_piqi.Piqi_impl_piqi.field -> (string * Piqi_json_type.json) list -> Piqobj.Piqobj.field list * (string * Piqi_json_type.json) list
val parse_required_field : [> `Assoc of (string * Piqi_json_type.json) list ] -> string -> Piqi_impl_piqi.Piqi_impl_piqi.piqtype -> (string * Piqi_json_type.json) list -> Piqobj.Piqobj.obj * (string * Piqi_json_type.json) list
val find_fields : string -> (string * Piqi_json_type.json) list -> json list * (string * Piqi_json_type.json) list
val parse_optional_field : string -> Piqi_impl_piqi.Piqi_impl_piqi.piqtype -> Piqobj_common.C.T.any option -> (string * Piqi_json_type.json) list -> Piqobj.obj option * (string * Piqi_json_type.json) list
val parse_repeated_field : string -> Piqi_impl_piqi.Piqi_impl_piqi.piqtype -> (string * Piqi_json_type.json) list -> Piqobj.Piqobj.obj list * (string * Piqi_json_type.json) list