Re: [HACKERS] Proposal: json_populate_record and nested json objects

2013-09-16 Thread Andrew Dunstan
On 09/16/2013 09:57 AM, Chris Travers wrote: > On 16 September 2013 at 14:43 Merlin Moncure wrote: > > Huge +1 on on this. Couple random thoughts: > > *) Hard to see how you would structure this as an extension as you're > adjusting the behaviors of existing functions, unless you wanted to

Re: [HACKERS] Proposal: json_populate_record and nested json objects

2013-09-16 Thread Merlin Moncure
On Mon, Sep 16, 2013 at 8:57 AM, Chris Travers wrote: >> On 16 September 2013 at 14:43 Merlin Moncure wrote: > >> >> Huge +1 on on this. Couple random thoughts: >> >> *) Hard to see how you would structure this as an extension as you're >> adjusting the behaviors of existing functions, unless you

Re: [HACKERS] Proposal: json_populate_record and nested json objects

2013-09-16 Thread Chris Travers
> On 16 September 2013 at 14:43 Merlin Moncure wrote: > > Huge +1 on on this. Couple random thoughts: > > *) Hard to see how you would structure this as an extension as you're > adjusting the behaviors of existing functions, unless you wanted to > introduce new function names for testing purpos

Re: [HACKERS] Proposal: json_populate_record and nested json objects

2013-09-16 Thread Merlin Moncure
On Sat, Sep 14, 2013 at 9:27 PM, chris travers wrote: > Hi all; > > Currently json_populate_record and json_populate_recordset cannot work with > nested json objects. This creates two fundamental problems when trying to > use JSON as an interface format. > > The first problem is you can't easily

Re: [HACKERS] Proposal: json_populate_record and nested json objects

2013-09-15 Thread Chris Travers
> On 15 September 2013 at 18:42 Andrew Dunstan wrote: > > > > On 09/14/2013 10:27 PM, chris travers wrote: > > Well, you could fairly easily build it as an extension as a POC. The > main point of the API this is built on was to allow for extensions. > > The logic changes might be a bit tricky. I

Re: [HACKERS] Proposal: json_populate_record and nested json objects

2013-09-15 Thread Andrew Dunstan
On 09/14/2013 10:27 PM, chris travers wrote: Hi all; Currently json_populate_record and json_populate_recordset cannot work with nested json objects. This creates two fundamental problems when trying to use JSON as an interface format. The first problem is you can't easily embed a json data t

[HACKERS] Proposal: json_populate_record and nested json objects

2013-09-14 Thread chris travers
Hi all; Currently json_populate_record and json_populate_recordset cannot work with nested json objects. This creates two fundamental problems when trying to use JSON as an interface format. The first problem is you can't easily embed a json data type in an json object and have it populate a rec