pdk.flow.JsonObject
functions to operate with JSON object
All functions
setBoolean
replaces the existing field with a Boolean value or adds a new field.
Arguments:
jsonObject :: pdk.net.JsonObject
field :: pdk.core.String
value :: pdk.core.Boolean
Result:
No variable is returned. A field in the object was set.
Possible exceptions
NullPointerException - throws if the input object is
NULL
Example:
setFloat
replaces the existing field with a Float value or adds a new field.
Arguments:
jsonObject :: pdk.net.JsonObject
field :: pdk.core.String
value :: pdk.core.Float
Result:
No variable is returned. A field in the object was set.
Possible exceptions
NullPointerException - throws if the input object is
NULL
Example:
setInteger
replaces the existing field with a Integer value or adds a new field.
Arguments:
jsonObject :: pdk.net.JsonObject
field :: pdk.core.String
value :: pdk.core.Integer
Result:
No variable is returned. A field in the object was set.
Possible exceptions
NullPointerException - throws if the input object is
NULL
Example:
setString
replaces the existing field with a String value or adds a new field.
Arguments:
jsonObject :: pdk.net.JsonObject
field :: pdk.core.String
value :: pdk.core.String
Result:
No variable is returned. A field in the object was set.
Possible exceptions
NullPointerException - throws if the input object is
NULL
Example:
setJsonObject
replaces the existing field with a JsonObject value or adds a new field.
Arguments:
jsonObject :: pdk.net.JsonObject
field :: pdk.core.String
value :: pdk.net.JsonObject
Result:
No variable is returned. A field in the object was set.
Possible exceptions
NullPointerException - throws if the input object is
NULL
Example:
setJsonArray
replaces the existing field with a JsonArray value or adds a new field.
Arguments:
jsonObject :: pdk.net.JsonObject
field :: pdk.core.String
value :: pdk.net.JsonArray
Result:
No variable is returned. A field in the object was set.
Possible exceptions
NullPointerException - throws if the input object is
NULL
Example:
removeField
removes field from the jsonObject.
Arguments:
jsonObject :: pdk.net.JsonObject
field :: pdk.core.String
Result:
No variable is returned. An object without a field
Possible exceptions
NullPointerException - throws if the input object or the field is
NULL
Example:
removeAllFields
removes all fields from the jsonObject.
Arguments:
jsonObject :: pdk.net.JsonObject
Result:
No variable is returned. An object without any fields
Possible exceptions
NullPointerException - throws if the input object is
NULL
Example:
mappingToVariable
assigns the JSON Object data to a variable.
Arguments:
jsonObject :: pdk.net.JsonObject
variable :: pdk.core.UserObject
Result:
No output. The variable is initialized.
Possible exceptions
NullPointerException - throws if the input jsonObject is
NULL
JsonMapException - throws if the jsonObject can not be mapped to the variable structure
Last updated