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