boolean
- Returns the result of a JSON path predicate check for the specified
- JSON value.
+ Returns the SQL boolean result of a JSON path predicate check
+ for the specified JSON value.
(This is useful only
with predicate
check expressions, not SQL-standard JSON path expressions,
Boolean predicate, whereas the SQL standard allows predicates only within
filters. While SQL-standard path expressions return the relevant
element(s) of the queried JSON value, predicate check expressions
- return the single three-valued result of the
+ return the single three-valued jsonb result of the
predicate: true,
- false, or unknown.
+ false, or null.
For example, we could write this SQL-standard filter expression:
=> select jsonb_path_query(:'json', '$.track.segments ?(@[*].HR > 130)');