BooleanValue (Json function)
Get boolean value of JSON object (Json class)
[Introduced in Model 204 7.6]
This function returns the boolean value of a Json object of the boolean type.
Syntax
%boolean = json:BooleanValue Throws InvalidJsonType
Syntax terms
%boolean | Boolean value |
---|---|
Json | Json object, which must either be the boolean type or be Null. |
Usage notes
- If the Json object is not null and doesn't have the boolean type, an InvalidJsonType exception is thrown.
- If the Json object is null, the boolean value is also null.
Examples
The following example does processing base on the value of a Json object called %rushJob:
%rushJob is json ... if %rushJob:booleanValue then ... end if