$$string
Converts to string (if json
set to true
, will convert null
and strings also as JSON strings)
Usage​
{
"$$string": /* Value to convert to string */,
"json": false /* boolean */
}
"$$string([json]):{input}"
note
Concrete values in the usage example are default values.
Returns​
string
Arguments​
Argument | Type | Values | Required / Default Value | Description |
---|---|---|---|---|
Primary | object | Yes | Value to convert to string | |
json | boolean | false /true | false | Whether to convert null and strings to json (otherwise, null stays null and strings are returned as-is) |
Examples​
Input
Definition
Output
"text"
"$$string:$"
"text"
"text"
"$$string(true):$"
"\"text\""
true
"$$string:$"
"true"
123
"$$string:$"
"123"
3.14159265358979323846264338327950288419716939937510
"$$string:$"
"3.1415926535897932384626433832795028841971693993751"
null
"$$string:$"
null
null
"$$string(true):$"
"null"
{
"a": "b"
}
"$$string:$"
"{\"a\":\"b\"}"
100
"$$string:$"
"100"