From: Charles Paperman <charles.paperman@inria.fr>
To: pgsql-general@lists.postgresql.org
Cc: Filip Murlak <fmurlak@gmail.com>
Cc: matgienieczko@gmail.com
Subject: jsonpath duplication result
Date: Thu, 2 Sep 2021 15:06:20 +0200
Message-ID: <YTDMTNTZcFACww2V@paperman.name> (raw)
Hi,
I am looking at the documentation and how jsonpath works and I fall on the following example:
(On PostgreSQL 12.4, package for Debian 12.4-3):
SELECT jsonb_path_query(j, '$.**.a.**.b') FROM (SELECT '{"a":{"a":{"b":{"c":3}}}'::jsonb as j) as T;
The result:
jsonb_path_query
------------------
{"c": 3}
{"c": 3}
(2 lignes)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: charles.paperman@inria.fr, fmurlak@gmail.com, matgienieczko@gmail.com
Subject: Re: jsonpath duplication result
In-Reply-To: <YTDMTNTZcFACww2V@paperman.name>
References: <YTDMTNTZcFACww2V@paperman.name>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox