Skip to content

#isString

Returns true if the value is a string.

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

boolean

source.json
{
"a": "5",
"b": 5
}
transformer.json
{
"a": "#isString($.a)",
"b": "#isString($.b)"
}
output.json
{
"a": true,
"b": false
}

Try it in the playground →

#toString