GetText Procedure
Reads the value at Path and returns the value as Text
.
An error will be thrown if the value doesn't exist.
Overloads
Name | Description |
---|---|
GetText(JsonObject; Text): Text | Reads the value at Path and returns the value as Text . |
GetText(JsonObject; Text; Boolean): Text | Reads the value at Path and returns the value as Text . |
GetText(JsonObject; Text) Procedure
Reads the value at Path and returns the value as Text
.
An error will be thrown if the value doesn't exist.
Signature
GetText(JsonObj: JsonObject; Path: Text) : Text
Parameters
JsonObj
JsonObject
The JsonObject to read from.
Path
Text
The JSONPath expression that will be used to get the requested value.
Returns
Text
The value found at Path as Text
.
GetText(JsonObject; Text; Boolean) Procedure
Reads the value at Path and returns the value as Text
.
Signature
GetText(JsonObj: JsonObject; Path: Text; DefaultIfUndefined: Boolean) : Text
Parameters
JsonObj
JsonObject
The JsonObject to read from.
Path
Text
The JSONPath expression that will be used to get the requested value.
DefaultIfUndefined
Boolean
If true
an error is not thrown if the value doesn't exist. Instead a blank text is returned. If false
an error is thrown if the value doesn't exist.
Returns
Text
The value found at Path as Text
.
This documentation is generated from Smart Toolbox v27.0