Re: JSON manipulation functions

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: JSON manipulation functions
Дата
Msg-id AANLkTincYQpPjpd42swWLWu70q7rlUOpI9pgrsqgeMZ9@mail.gmail.com
обсуждение исходный текст
Ответ на Re: JSON manipulation functions  (Bruce Momjian <bruce@momjian.us>)
Список 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 по дате отправления:

Предыдущее
От: Stephen Frost
Дата:
Сообщение: [PATCH] Add SIGCHLD catch to psql
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: List traffic