#toBoolean
Returns a value converted to a boolean.
#toBoolean(value)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
value |
path | value |
The value to convert. |
Returns
Section titled “Returns”boolean
Examples
Section titled “Examples”Parse a boolean string
Section titled “Parse a boolean string”{ "flag": "true"}{ "result": "#toBoolean($.flag)"}{ "result": true}