Returns all JSON items returned by the JSON path for the specified JSON value, as a JSON array.
Signatures & examples
jsonb_path_query_array ( target jsonb, path jsonpath [, vars jsonb [, silent boolean ]] ) → jsonb
Returns all JSON items returned by the JSON path for the specified JSON value, as a JSON array. The parameters are the same as for jsonb_path_query.jsonb_path_query_array('{"a":[1,2,3,4,5]}', '$.a[*] ? (@ >= $min && @ <= $max)', '{"min":2, "max":4}') → [2, 3, 4]
Version history 3
- PG 16 → 17changed
- PG 12 → 13changed
- PG 11 → 12added
Definition snapshot: 2026-09-14T13:14:25.684213+00:00@99e6866c · English manual source