From: | Merlin Moncure <mmoncure(at)gmail(dot)com> |
---|---|
To: | Deven Phillips <deven(dot)phillips(at)gmail(dot)com> |
Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: JSON "pretty" and selecting nested JSON fields |
Date: | 2015-03-30 19:39:03 |
Message-ID: | CAHyXU0zz6vGjAqE6n+B52cFfL_6VyjRLuJeU=LYvUJ_86qvt9A@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Mon, Mar 30, 2015 at 12:54 PM, Deven Phillips
<deven(dot)phillips(at)gmail(dot)com> wrote:
> Hi all,
>
> I have a query which selects several rows of data, and contained in one
> of those rows is some aggregated JSON data. I am using row_to_json() to make
> the whole output JSON and I am providing "true" for pretty formatting of the
> JSON. The problem that I am seeing is that they nested JSON block is not
> being prettified along with the outer JSON.
It looks like a bug. The 'outer' to_json's pretty print feature should
control the whole structure IMO. Personally, I think you'll have
better luck rigging another function to do whitespace insertion
formatting.
merlin
From | Date | Subject | |
---|---|---|---|
Next Message | negrus | 2015-03-30 19:59:07 | unrecognized configuration parameter "bdr.connections" |
Previous Message | Merlin Moncure | 2015-03-30 19:25:56 | Re: Muti-table join and roll-up aggregate data into nested JSON? |