@@ -9967,7 +9967,7 @@ table2-mapping
9967
9967
a boolean or NULL, the text representation will be used, escaped and
9968
9968
quoted so that it is legal JSON.
9969
9969
</entry>
9970
- <entry><literal>to_json('Fred said "Hi."'</literal></entry>
9970
+ <entry><literal>to_json('Fred said "Hi."'::text) </literal></entry>
9971
9971
<entry><literal>"Fred said \"Hi.\""</literal></entry>
9972
9972
</row>
9973
9973
<row>
@@ -9995,7 +9995,7 @@ table2-mapping
9995
9995
<entry>
9996
9996
Expands the outermost json object into a set of key/value pairs.
9997
9997
</entry>
9998
- <entry><literal>select * from json_each_as_text ('{"a":"foo", "b":"bar"}')</literal></entry>
9998
+ <entry><literal>select * from json_each ('{"a":"foo", "b":"bar"}')</literal></entry>
9999
9999
<entry>
10000
10000
<programlisting>
10001
10001
key | value
@@ -10017,7 +10017,7 @@ table2-mapping
10017
10017
Expands the outermost json object into a set of key/value pairs. The
10018
10018
returned value will be of type text.
10019
10019
</entry>
10020
- <entry><literal>select * from json_each_as_text ('{"a":"foo", "b":"bar"}')</literal></entry>
10020
+ <entry><literal>select * from json_each_text ('{"a":"foo", "b":"bar"}')</literal></entry>
10021
10021
<entry>
10022
10022
<programlisting>
10023
10023
key | value
@@ -10090,7 +10090,7 @@ table2-mapping
10090
10090
effort; columns in base with no corresponding key in from_json
10091
10091
will be left null. A column may only be specified once.
10092
10092
</entry>
10093
- <entry><literal>json_populate_record(null::x, '{"a":1,"b":2}')</literal></entry>
10093
+ <entry><literal>select * from json_populate_record(null::x, '{"a":1,"b":2}')</literal></entry>
10094
10094
<entry>
10095
10095
<programlisting>
10096
10096
a | b
@@ -10114,7 +10114,7 @@ table2-mapping
10114
10114
corresponding key in from_json will be left null. A column
10115
10115
may only be specified once.
10116
10116
</entry>
10117
- <entry><literal>json_populate_recordset(null::x, '[{"a":1,"b":2},{"a":3,"b":4}]')</literal></entry>
10117
+ <entry><literal>select * from json_populate_recordset(null::x, '[{"a":1,"b":2},{"a":3,"b":4}]')</literal></entry>
10118
10118
<entry>
10119
10119
<programlisting>
10120
10120
a | b
0 commit comments