asNumber

Returns the argument as a number.

Arguments

  • object - The value to convert.

Example

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