Re: JSON manipulation functions - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: JSON manipulation functions
Date
Msg-id AANLkTincYQpPjpd42swWLWu70q7rlUOpI9pgrsqgeMZ9@mail.gmail.com
Whole thread Raw
In response to Re: JSON manipulation functions  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
2010/5/14 Bruce Momjian <bruce@momjian.us>:
> Joseph Adams wrote:
>> == array/object conversion ==
>>
>> The json_object function converts a tuple to a JSON object.  If there
>> are duplicate column names, there will be duplicate keys in the
>> resulting JSON object.
>>
>> json_object([content [AS name] [, ...]]) returns json
>>
>> Likewise, the json_array function converts a tuple to a JSON array.
>> Column names are ignored.
>>
>> json_array([content [AS name] [, ...]]) returns json
>
> Do you see any problems with the fact that JSON arrays can use mixed
> data types, e.g.:
>
>        [ 1, 2, 'hi', false]

it could not be a problem

regards
Pavel
>
> --
>  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
>  EnterpriseDB                             http://enterprisedb.com
>
> --
> Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers
>


pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: [PATCH] Add SIGCHLD catch to psql
Next
From: "Kevin Grittner"
Date:
Subject: Re: List traffic