json

jsonb_path_query_array

Collects all path matches in a JSON array; no matches produce an empty array.

Formal Syntax & Structure

sql syntaxsql
jsonb_path_query_array(target, path [, vars [, silent]])

Working Example

Example Snippetsql
SELECT jsonb_path_query_array('[1,7,9]', '$[*] ? (@ > 5)');
SQL Reference