Re: json accessors - Mailing list pgsql-hackers

From David E. Wheeler
Subject Re: json accessors
Date
Msg-id 419488CD-1780-4CFC-8D93-1D3302960020@justatheory.com
Whole thread Raw
In response to Re: json accessors  (Josh Berkus <josh@agliodbs.com>)
Responses Re: json accessors  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
On Dec 4, 2012, at 10:05 AM, Josh Berkus <josh@agliodbs.com> wrote:

>>    json_get(json, variadic text) => json
>
> Given that I already do the equivalent in Python, this would suit me
> well.  Not sure about other users ...

Well, given that sometimes you will have mixed arrays and objects, how would you distinguish "42" as an object key or
anarray index? 

Best,

David




pgsql-hackers by date:

Previous
From: "David E. Wheeler"
Date:
Subject: Re: WIP json generation enhancements
Next
From: Heikki Linnakangas
Date:
Subject: Re: Dumping an Extension's Script