From c2099751cd85d46745a9734b64b953d3277e5b9e Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Tue, 28 Jan 2014 18:28:16 -0500 Subject: [PATCH] Minor docs fixes for new json functions. Thom Brown. --- doc/src/sgml/func.sgml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 10db2f0061..77dac08473 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -10309,7 +10309,7 @@ table2-mapping json - Builds a heterogeneously typed json array out of a variadic argument list. + Builds a heterogeneously-typed json array out of a variadic argument list. SELECT json_build_array(1,2,'3',4,5); @@ -10329,7 +10329,8 @@ table2-mapping json - Builds a JSON array out of a variadic agument list. By convention, the object is + Builds a JSON array out of a variadic argument list. + By convention, the object is constructed out of alternating name/value arguments. SELECT json_build_object('foo',1,'bar',2); @@ -10371,8 +10372,8 @@ table2-mapping json - The two argument form of JSON object takes keys and values pairwise from two separate - arrays. In all other respects it is identical to the one argument form. + The two-argument form of JSON object takes keys and values pairwise from two separate + arrays. In all other respects it is identical to the one-argument form. select * from json_object('{a, b}', '{1,2}'); @@ -10457,7 +10458,7 @@ table2-mapping - In json_to_record and json_to_recordset, type coercion from the JSON is + In json_to_record and json_to_recordset, type-coercion from the JSON is "best effort" and may not result in desired values for some types. JSON elements are matched to identical field names in the record definition, and elements which do not exist in the JSON will simply be NULL. JSON