projects
/
users
/
gsingh
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4a5c0c
)
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:29:31 +0000
(21:29 +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 cc3041f63731b540a76ef3c411a4c52b88fb9693..5b2c87705ef950e9e2a320df48bb278554f3e4c5 100644
(file)
--- a/
doc/src/sgml/func.sgml
+++ b/
doc/src/sgml/func.sgml
@@
-12916,17
+12916,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>