Per gripe from hubert depesz lubaczewski.
Also improve examples for this and json_array_elements so they match the
example results.
Expands a JSON array to a set of JSON values.
- json_array_elements('[1,true, [2,false]]')
+ SELECT * FROM json_array_elements('[1,true, [2,false]]')
value
json_array_elements_text(json)
- SETOF json
+ SETOF text
Expands a JSON array to a set of text values.
- json_array_elements_text('["foo", "bar"]')
+ SELECT * FROM json_array_elements_text('["foo", "bar"]')
value