]> granicus.if.org Git - postgresql/commitdiff
doc: Format example JSON data better
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 26 Sep 2019 19:27:34 +0000 (21:27 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 26 Sep 2019 19:27:34 +0000 (21:27 +0200)
doc/src/sgml/func.sgml

index 390cd48c67b5ef911e4d93d08cb3cc8d21b5c876..3981035634a80e53a810681c5f5d233d5c24ed1b 100644 (file)
@@ -12822,17 +12822,20 @@ table2-mapping
    For example, suppose you have some JSON data from a GPS tracker that you
    would like to parse, such as:
 <programlisting>
-{ "track" :
-  {
-    "segments" : [ 
-      { "location":   [ 47.763, 13.4034 ],
+{
+  "track": {
+    "segments": [
+      {
+        "location":   [ 47.763, 13.4034 ],
         "start time": "2018-10-14 10:05:14",
         "HR": 73
       },
-      { "location":   [ 47.706, 13.2635 ],
+      {
+        "location":   [ 47.706, 13.2635 ],
         "start time": "2018-10-14 10:39:21",
         "HR": 135
-      } ]
+      }
+    ]
   }
 }
 </programlisting>