GetInteger Procedure
Reads the value at Path and returns the value as Integer.
An error will be thrown if the value doesn't exist.
Overloads
| Name | Description |
|---|---|
| GetInteger(JsonObject; Text): Integer | Reads the value at Path and returns the value as Integer. |
| GetInteger(JsonObject; Text; Boolean): Integer | Reads the value at Path and returns the value as Integer. |
GetInteger(JsonObject; Text) Procedure
Reads the value at Path and returns the value as Integer.
An error will be thrown if the value doesn't exist.
Signature
GetInteger(JsonObj: JsonObject; Path: Text) : Integer
Parameters
JsonObj JsonObject
The JsonObject to read from.
Path Text
The JSONPath expression that will be used to get the requested value.
Returns
Integer
The value found at Path as Integer.
GetInteger(JsonObject; Text; Boolean) Procedure
Reads the value at Path and returns the value as Integer.
Signature
GetInteger(JsonObj: JsonObject; Path: Text; DefaultIfUndefined: Boolean) : Integer
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 integer is returned. If false an error is thrown if the value doesn't exist.
Returns
Integer
The value found at Path as Integer.
This documentation is generated from Smart Toolbox v27.1