Skip to content

#isArray

Returns true if the value is an array, false otherwise.

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

boolean

source.json
{
"a": [ 1 ],
"b": { "c": 1 }
}
transformer.json
{
"a": "#isArray($.a)",
"b": "#isArray($.b)"
}
output.json
{
"a": true,
"b": false
}

Try it in the playground →

#isObject · #isEmpty