Re: Stability of JSON textual representation

From: Paul Jungwirth <pj(at)illuminatedcomputing(dot)com>
To: David Evans <david(dot)evans(at)cantab(dot)net>
Cc: pgsql <pgsql-general(at)postgresql(dot)org>
Subject: Re: Stability of JSON textual representation
Date: 2015-02-09 03:49:13
Message-ID: CA+6hpa=9foqm5xGCHCajXJ0LceDLDZr-r2ZUYPf9QEtw7p+bbg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Gavin Flower 2015-02-09 03:57:34 Re: Stability of JSON textual representation
Previous Message Tim Uckun 2015-02-08 21:55:14 Re: Partioning with overlapping and non overlapping constraints