postgres.git / summary / log / commit / refs
commit 79504cfe1b23cd22c78dd5786f81f40905c5cce0
Author: Peter Eisentraut <peter@eisentraut.org>
Date: Thu Sep 26 19:27:34 2019 +0000
First released in: 13.0, 12.0
doc: Format example JSON data better
doc/src/sgml/func.sgml | 15 +++++++++------
1 file 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>
[parent: baca53d3dca7]