Skip to content

#toString

Returns the string representation of a value.

#toString(value)
Category Types and conversionValid in Property value
Name Type Description
value path | value The value to convert.

string

source.json
{
"n": 42
}
transformer.json
{
"result": "#toString($.n)"
}
output.json
{
"result": "42"
}

Try it in the playground →

#isString