json
jsonb_path_query_first
Returns the first matching item or SQL NULL when no item matches.
Formal Syntax & Structure
sql syntaxsql
jsonb_path_query_first(target, path [, vars [, silent]])Working Example
Example Snippetsql
SELECT jsonb_path_query_first('[1,7,9]', '$[*] ? (@ > 5)');