Re: Add jsonb_compact(...) for whitespace-free jsonb to text - Mailing list pgsql-hackers

From Jim Nasby
Subject Re: Add jsonb_compact(...) for whitespace-free jsonb to text
Date
Msg-id 9def5342-0ae7-8211-4823-ebde596e6211@BlueTreble.com
Whole thread Raw
In response to Re: Add jsonb_compact(...) for whitespace-free jsonb to text  ("Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>)
List pgsql-hackers
On 4/29/16 8:56 AM, Shulgin, Oleksandr wrote:
> It would probably make sense model this function after Python's
> "dump-to-JSON-string"
> function: https://docs.python.org/2/library/json.html#json.dumps  With
> the optional parameters for sorting the keys, indentation size and
> punctuation.  This way all the prettiness enhancements could be
> contained in a single function w/o the need for generalized interface
> used in many places.

+1. I've found the output functions of json.dumps to be very handy.
-- 
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com
855-TREBLE2 (855-873-2532)   mobile: 512-569-9461



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: ALTER TABLE lock downgrades have broken pg_upgrade
Next
From: Robert Haas
Date:
Subject: Re: asynchronous and vectorized execution