Skip to main content

$$string

Converts to string (if json set to true, will convert null and strings also as json strings)

Usage​

"$$string([json]):{input}"

Returns​

string

Arguments​

ArgumentTypeValuesRequired / Default ValueDescription
jsonbooleanfalseWhether to convert null and strings to json (otherwise, null stays null and strings are returned as-is)

Examples​

Input

Definition

Output

123
"$$string:$"
"123"
null
"$$string:$"
null
null
"$$string(true):$"
"null"
"str"
"$$string:$"
"str"
"str"
"$$string(true):$"
"\"str\""
["a"]
"$$string:$"
"[\"a\"]"
{"a":1}
"$$string:$"
"{\"a\":1}"