From 79504cfe1b23cd22c78dd5786f81f40905c5cce0 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 26 Sep 2019 21:27:34 +0200 Subject: [PATCH] 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 390cd48c67..3981035634 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: -{ "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 - } ] + } + ] } } -- 2.40.0