Re: json accessors - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: json accessors
Date
Msg-id 50BD4E70.4090006@agliodbs.com
Whole thread Raw
In response to Re: json accessors  (Merlin Moncure <mmoncure@gmail.com>)
Responses Re: json accessors
List pgsql-hackers
Andrew,

What about doing:

json_get(json, json)
returns json

where parameter #2 is a path expressed as JSON?  For example,

json_get(personal_profile, '[ {contact_info {phone numbers {cell phones}
} } ]')
... would return whatever was in that heirarchical object, in this case
an array of cell phone numbers.

Or am I just reinventing jsonpath?

-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com



pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: [COMMITTERS] pgsql: Add mode where contrib installcheck runs each module in a separa
Next
From: Jeff Davis
Date:
Subject: Commits 8de72b and 5457a1 (COPY FREEZE)