Skip to content

#isMissing

Returns true if the provided path does not exist in the source document, false otherwise.

#isMissing(path)
Category Paths and existenceValid in Property value
Name Type Description
path path A JSON Path into the source document.

boolean

  • A property that exists with a null value is not missing; use #isNull for that.
source.json
{
"present": null
}
transformer.json
{
"present": "#isMissing($.present)",
"absent": "#isMissing($.absent)"
}
output.json
{
"present": false,
"absent": true
}

Try it in the playground →

#exists · #isNull