Re: json accessors

From: "David E(dot) Wheeler" <david(at)justatheory(dot)com>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: json accessors
Date: 2012-12-05 17:11:50
Message-ID: 419488CD-1780-4CFC-8D93-1D3302960020@justatheory.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Dec 4, 2012, at 10:05 AM, Josh Berkus <josh(at)agliodbs(dot)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 an array index?

Best,

David

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2012-12-05 17:13:10 Re: Dumping an Extension's Script
Previous Message Andres Freund 2012-12-05 17:08:01 Re: PITR potentially broken in 9.2