Skip to content

Commit

Permalink
Merge pull request #511 from ietf-wg-jsonpath/rw-c-11
Browse files Browse the repository at this point in the history
RW-C-11: Existence: Complement "null" example by "false" example
  • Loading branch information
cabo authored Sep 21, 2023
2 parents 380e5a8 + b28ba2e commit 1895953
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions draft-ietf-jsonpath-base.md
Original file line number Diff line number Diff line change
Expand Up @@ -1326,6 +1326,8 @@ Existence tests differ from comparisons in that:
To examine the value of a node selected by a query, an explicit comparison is necessary.
For example, to test whether the node selected by the query `@.foo` has the value `null`, use `@.foo == null` (see {{null-semantics}})
rather than the negated existence test `!@.foo` (which yields false if `@.foo` selects a node, regardless of the node's value).
Similarly, `@.foo == false` yields true only if `@.foo` selects a node and
the value of that node is `false`.

##### Comparisons

Expand Down

0 comments on commit 1895953

Please sign in to comment.