pdk.flow.JsonArray
functions to operate with JSON array
All functions
addBoolean
adds new element with type Boolean to the input array.
Arguments:
jsonArray :: pdk.net.JsonArray
value :: pdk.core.Boolean
Result:
No variable is returned. An array contains a new element.
Possible exceptions
NullPointerException - throws if the input jsonArray is
NULL
Example:
addFloat
adds new element with type Float to the input array.
Arguments:
jsonArray :: pdk.net.JsonArray
value :: pdk.core.Float
Result:
No variable is returned. An array contains a new element.
Possible exceptions
NullPointerException - throws if the input jsonArray is
NULL
Example:
addInteger
adds new element with type Integer to the input array.
Arguments:
jsonArray :: pdk.net.JsonArray
value :: pdk.core.Integer
Result:
No variable is returned. An array contains a new element.
Possible exceptions
NullPointerException - throws if the input jsonArray is
NULL
Example:
addString
adds new element with type String to the input array.
Arguments:
jsonArray :: pdk.net.JsonArray
value :: pdk.core.String
Result:
No variable is returned. An array contains a new element.
Possible exceptions
NullPointerException - throws if the input jsonArray is
NULL
Example:
addJsonObject
adds new element with type JsonObject to the input array.
Arguments:
jsonArray :: pdk.net.JsonArray
value :: pdk.net.JsonObject
Result:
No variable is returned. An array contains a new element.
Possible exceptions
NullPointerException - throws if the input jsonArray is
NULL
Example:
addJsonArray
adds new element with type JsonArray to the input array.
Arguments:
jsonArray :: pdk.net.JsonArray
value :: pdk.net.JsonArray
Result:
No variable is returned. An array contains a new element.
Possible exceptions
NullPointerException - throws if the input jsonArray is
NULL
Example:
setBoolean
replaces the existing element with a new element of type Boolean.
Arguments:
jsonArray :: pdk.net.JsonArray
position :: pdk.core.Integer
value :: pdk.core.Boolean
Result:
No variable is returned. An array contains a new element.
Possible exceptions
IndexOutOfBoundsException - throws if the index is greater than the length of the jsonArray
NullPointerException - throws if the input array or the position is
NULL
Example:
setFloat
replaces the existing element with a new element of type Float.
Arguments:
jsonArray :: pdk.net.JsonArray
position :: pdk.core.Integer
value :: pdk.core.Float
Result:
No variable is returned. An array contains a new element.
Possible exceptions
IndexOutOfBoundsException - throws if the index is greater than the length of the jsonArray
NullPointerException - throws if the input array or the position is
NULL
Example:
setInteger
replaces the existing element with a new element of type Integer.
Arguments:
jsonArray :: pdk.net.JsonArray
position :: pdk.core.Integer
value :: pdk.core.Integer
Result:
No variable is returned. An array contains a new element.
Possible exceptions
IndexOutOfBoundsException - throws if the index is greater than the length of the jsonArray
NullPointerException - throws if the input array or the position is
NULL
Example:
setString
replaces the existing element with a new element of type String.
Arguments:
jsonArray :: pdk.net.JsonArray
position :: pdk.core.Integer
value :: pdk.core.String
Result:
No variable is returned. An array contains a new element.
Possible exceptions
IndexOutOfBoundsException - throws if the index is greater than the length of the jsonArray
NullPointerException - throws if the input array or the position is
NULL
Example:
setJsonObject
replaces the existing element with a new element of type JsonObject.
Arguments:
jsonArray :: pdk.net.JsonArray
position :: pdk.core.Integer
value :: pdk.net.JsonObject
Result:
No variable is returned. An array contains a new element.
Possible exceptions
IndexOutOfBoundsException - throws if the index is greater than the length of the jsonArray
NullPointerException - throws if the input array or the position is
NULL
Example:
setJsonArray
replaces the existing element with a new element of type JsonArray.
Arguments:
jsonArray :: pdk.net.JsonArray
position :: pdk.core.Integer
value :: pdk.net.JsonArray
Result:
No variable is returned. An array contains a new element.
Possible exceptions
IndexOutOfBoundsException - throws if the index is greater than the length of the jsonArray
NullPointerException - throws if the input array or the position is
NULL
Example:
removeItem
removes the element at a specific position from the jsonArray.
Arguments:
jsonArray :: pdk.net.JsonArray
position :: pdk.core.Integer
Result:
No variable is returned. An array without an element removed from the specified position.
Possible exceptions
IndexOutOfBoundsException - throws if the position is greater than the length of the jsonArray
NullPointerException - throws if the input array or the position is
NULL
Example:
removeAll
removes all elements from the jsonArray.
Arguments:
jsonArray :: pdk.net.JsonArray
Result:
No variable is returned. An array is empty.
Possible exceptions
NullPointerException - throws if the input array is
NULL
Example:
mappingToVariable
assigns the JSON Array data to a variable.
Arguments:
jsonArray :: pdk.net.JsonArray
variable :: pdk.core.Array<Any>
Result:
No output. The variable is initialized.
Possible exceptions
NullPointerException - throws if the input jsonArray is
NULL
JsonMapException - throws if the jsonArray item structure can not be mapped to the variable array item structure
Last updated