Re: JSON for PG 9.2 - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: JSON for PG 9.2
Date
Msg-id 4F0EFAEB.4000909@dunslane.net
Whole thread Raw
In response to Re: JSON for PG 9.2  (Joey Adams <joeyadams3.14159@gmail.com>)
Responses Re: JSON for PG 9.2  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-hackers

On 01/12/2012 09:00 AM, Joey Adams wrote:
> I wrote an array_to_json function during GSoC 2010:
>
>      http://git.postgresql.org/gitweb/?p=json-datatype.git;a=blob;f=json_io.c#l289
>
> It's not exposed as a procedure called array_to_json: it's part of the
> to_json function, which decides what to do based on the argument type.
>


Excellent, this is just the point at which I stopped work last night, so 
with your permission I'll steal this and it will save me a good chunk of 
time.

cheers

andrew



pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Sending notifications from the master to the standby
Next
From: Tom Lane
Date:
Subject: Re: pgbench post-connection command