Re: Stability of JSON textual representation

Поиск
Список
Период
Сортировка
От Paul Jungwirth
Тема Re: Stability of JSON textual representation
Дата
Msg-id CA+6hpa=9foqm5xGCHCajXJ0LceDLDZr-r2ZUYPf9QEtw7p+bbg@mail.gmail.com
обсуждение исходный текст
Ответ на Stability of JSON textual representation  (David Evans <david.evans@cantab.net>)
Список pgsql-general
> I've noticed that when representing lists as JSON, Postgres 9.4 sometimes
> outputs spaces after commas, and other times does not.

Here is a similar test on 9.3:

# select '[1,2,3]'::json::text, '[1, 2, 3]'::json::text;
  text   |   text
---------+-----------
 [1,2,3] | [1, 2, 3]

It looks like even casting back and forth between text and json
preserves the text.

Paul

--
_________________________________
Pulchritudo splendor veritatis.


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

Предыдущее
От: "George Weaver"
Дата:
Сообщение: Re: "Ungroup" data for import into PostgreSQL
Следующее
От: Gavin Flower
Дата:
Сообщение: Re: Stability of JSON textual representation