aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2019-09-26 21:27:34 +0200
committerPeter Eisentraut <peter@eisentraut.org>2019-09-26 21:27:34 +0200
commit79504cfe1b23cd22c78dd5786f81f40905c5cce0 (patch)
treefa89d4a74e39344069fab263c5a0ede818c626e8
parentbaca53d3dca701e6a8b04a1b2dd0ed603289fbf0 (diff)
downloadpostgresql-79504cfe1b23cd22c78dd5786f81f40905c5cce0.tar.gz
postgresql-79504cfe1b23cd22c78dd5786f81f40905c5cce0.zip
doc: Format example JSON data better
-rw-r--r--doc/src/sgml/func.sgml15
1 files changed, 9 insertions, 6 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 390cd48c67b..3981035634a 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -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>