DocumentBuilder
Properties
Functions
Get a property's value as an Array. Returns null if the property doesn't exist, or its value is not an array.
Gets a property's value as a boolean. Returns true if the value exists, and is either true
or a nonzero number.
Gets a property's value as an Instant date. JSON does not directly support dates, so the actual property value must be a string, which is then parsed according to the ISO-8601 date format (the default used in JSON.) Returns null if the value doesn't exist, is not a string, or is not parsable as a date. NOTE: This is not a generic date parser! It only recognizes the ISO-8601 format, with or without milliseconds.
Get a property's value as a Dictionary. Returns null if the property doesn't exist, or its value is not a dictionary.
Removes the mapping for a key from this Dictionary
Set an Array value for the given key
Set a Blob value for the given key
Set a boolean value for the given key
Populate a document with content from a Map. Allowed value types are List, Instant, Map, Number, null, String, Array, Blob, and Dictionary. If present, Lists, Arrays, Maps and Dictionaries may contain only the above types. Setting the document content will replace the current data including the existing Array and Dictionary objects.
Set an Instant date value for the given key
Set a Dictionary value for the given key
Set a double value for the given key
Set a float value for the given key
Set an integer value for the given key
Populate a document with content from a JSON string. Allowed value types are List, Instant, Map, Number, null, String, Array, Blob, and Dictionary. If present, Lists, Arrays, Maps and Dictionaries may contain only the above types. Setting the document content will replace the current data including the existing Array and Dictionary objects.
Set a long value for the given key
Set a Number value for the given key
Set a String value for the given key
Set an object value by key. Allowed value types are List, Instant, Map, Number, null, String, Array, Blob, and Dictionary. If present, Lists, Arrays, Maps and Dictionaries may contain only the above types. An Instant date object will be converted to an ISO-8601 format string.