projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
baca53d
)
doc: Format example JSON data better
author
Peter Eisentraut
<peter@eisentraut.org>
Thu, 26 Sep 2019 19:27:34 +0000
(21:27 +0200)
committer
Peter Eisentraut
<peter@eisentraut.org>
Thu, 26 Sep 2019 19:27:34 +0000
(21:27 +0200)
doc/src/sgml/func.sgml
patch
|
blob
|
blame
|
history
diff --git
a/doc/src/sgml/func.sgml
b/doc/src/sgml/func.sgml
index 390cd48c67b5ef911e4d93d08cb3cc8d21b5c876..3981035634a80e53a810681c5f5d233d5c24ed1b 100644
(file)
--- 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>