Skip to content

#isObject

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

#isObject(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": "#isObject($.a)",
"b": "#isObject($.b)"
}
output.json
{
"a": false,
"b": true
}

Try it in the playground →

#isArray