asBoolean

Returns the argument as a boolean.

Arguments

  • object - The value to convert.

Example

{
  "$template": {
    "$comment": "The field below will be true",
    "test": "{{asBoolean('true')}}"
  }
}