#isMissing
Returns true if the provided path does not exist in the source document, false otherwise.
#isMissing(path)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
path |
path |
A JSON Path into the source document. |
Returns
Section titled “Returns”boolean
- A property that exists with a
nullvalue is not missing; use#isNullfor that.
Examples
Section titled “Examples”Missing versus present
Section titled “Missing versus present”{ "present": null}{ "present": "#isMissing($.present)", "absent": "#isMissing($.absent)"}{ "present": false, "absent": true}