package azure-cosmos-db

  1. Overview
  2. Docs

Module App_config.JsonSource

Sourcetype kv_item = {
  1. etag : string;
  2. key : string;
  3. label : string option;
  4. content_type : string option;
  5. locked : bool;
  6. last_modified : string;
}
Sourcetype kv_result = {
  1. items : kv_item list;
}
Sourceval write_kv_item : Buffer.t -> kv_item -> unit

Output a JSON value of type kv_item.

Sourceval string_of_kv_item : ?len:int -> kv_item -> string

Serialize a value of type kv_item into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type kv_item.

Sourceval kv_item_of_string : string -> kv_item

Deserialize JSON data of type kv_item.

Sourceval write_kv_result : Buffer.t -> kv_result -> unit

Output a JSON value of type kv_result.

Sourceval string_of_kv_result : ?len:int -> kv_result -> string

Serialize a value of type kv_result into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type kv_result.

Sourceval kv_result_of_string : string -> kv_result

Deserialize JSON data of type kv_result.

OCaml

Innovation. Community. Security.