BooleanValue (Json function)

From m204wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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

%booleanBoolean 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

See also