json
jsonb_path_exists
Checks whether a JSON path produces any item, not whether a predicate item is true.
Formal Syntax & Structure
sql syntaxsql
jsonb_path_exists(target, path [, vars [, silent]])Working Example
Example Snippetsql
SELECT jsonb_path_exists('[1,7]', '$[*] ? (@ > 5)');