Skip to content

Commit 79504cf

Browse files
committed
doc: Format example JSON data better
1 parent baca53d commit 79504cf

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

doc/src/sgml/func.sgml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12822,17 +12822,20 @@ table2-mapping
1282212822
For example, suppose you have some JSON data from a GPS tracker that you
1282312823
would like to parse, such as:
1282412824
<programlisting>
12825-
{ "track" :
12826-
{
12827-
"segments" : [
12828-
{ "location": [ 47.763, 13.4034 ],
12825+
{
12826+
"track": {
12827+
"segments": [
12828+
{
12829+
"location": [ 47.763, 13.4034 ],
1282912830
"start time": "2018-10-14 10:05:14",
1283012831
"HR": 73
1283112832
},
12832-
{ "location": [ 47.706, 13.2635 ],
12833+
{
12834+
"location": [ 47.706, 13.2635 ],
1283312835
"start time": "2018-10-14 10:39:21",
1283412836
"HR": 135
12835-
} ]
12837+
}
12838+
]
1283612839
}
1283712840
}
1283812841
</programlisting>

0 commit comments

Comments
 (0)