pub fn path_query_array( doc: &Value<'_>, path: &Value<'_>, ) -> Result<Value<'static>, EvalError>
v7.17.0 Phase 3.9 — jsonb_path_query_array(doc, path) returns the matched values wrapped as a single JSON array.
jsonb_path_query_array(doc, path)