Re: JSON manipulation functions

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: JSON manipulation functions
Дата
Msg-id 201005141533.o4EFXC504326@momjian.us
обсуждение исходный текст
Ответ на JSON manipulation functions  (Joseph Adams <joeyadams3.14159@gmail.com>)
Ответы Re: JSON manipulation functions  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: JSON manipulation functions  (Joseph Adams <joeyadams3.14159@gmail.com>)
Список pgsql-hackers
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]

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: HS/SR Assert server crash
Следующее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: List traffic