Re: Shouldn't jsonpath .string() Unwrap?
David E. Wheeler <david@justatheory.com>
From: David E. Wheeler <david@justatheory.com>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: "David G. Johnston" <david.g.johnston@gmail.com>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>,
Jeevan Chalke <jeevan.chalke@enterprisedb.com>
Date: 2024-06-13T22:45:21Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Teach jsonpath string() to unwrap in lax mode
- 653d3969bb01 17.0 landed
On Jun 13, 2024, at 3:53 PM, Andrew Dunstan <andrew@dunslane.net> wrote: > Hmm. You might be right. Many of these items have this code, but the string() branch does not: > if (unwrap && JsonbType(jb) == jbvArray) > return executeItemUnwrapTargetArray(cxt, jsp, jb, found, > false); Exactly, would be pretty easy to add. I can work up a patch this weekend. D