From d7d5832012ae5174707643af1a450d26d3350719 Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Thu, 4 Apr 2013 10:41:29 -0400 Subject: [PATCH] Fix a few thinkos in the JSON functions docs. Dickson S. Guedes --- doc/src/sgml/func.sgml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index dc5941eeda2..3ae2f23390f 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -9967,7 +9967,7 @@ table2-mapping 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.\"" @@ -9995,7 +9995,7 @@ table2-mapping 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 @@ -10017,7 +10017,7 @@ table2-mapping 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 @@ -10090,7 +10090,7 @@ table2-mapping 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 @@ -10114,7 +10114,7 @@ table2-mapping 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