a boolean or NULL, the text representation will be used, escaped and
quoted so that it is legal JSON.
- to_json('Fred said "Hi."'
+ to_json('Fred said "Hi."'::text)
"Fred said \"Hi.\""
|
Expands the outermost json object into a set of key/value pairs.
- select * from json_each_as_text('{"a":"foo", "b":"bar"}')
+ select * from json_each('{"a":"foo", "b":"bar"}')
key | value
Expands the outermost json object into a set of key/value pairs. The
returned value will be of type text.
- select * from json_each_as_text('{"a":"foo", "b":"bar"}')
+ select * from json_each_text('{"a":"foo", "b":"bar"}')
key | value
effort; columns in base with no corresponding key in from_json
will be left null. A column may only be specified once.
- json_populate_record(null::x, '{"a":1,"b":2}')
+ select * from json_populate_record(null::x, '{"a":1,"b":2}')
a | b
corresponding key in from_json will be left null. A column
may only be specified once.
- json_populate_recordset(null::x, '[{"a":1,"b":2},{"a":3,"b":4}]')
+ select * from json_populate_recordset(null::x, '[{"a":1,"b":2},{"a":3,"b":4}]')
a | b