incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noah Slater <nsla...@apache.org>
Subject Re: Appending "\n" and pretty printing output from the command line using curl (with a smidge of python)
Date Thu, 21 Aug 2008 02:04:47 GMT
On Wed, Aug 20, 2008 at 06:50:36PM -0700, Chris Anderson wrote:
> I'd like to have pretty-print JSON also. It might be an easy flag to
> add to the json:encode function.

Please note there are two separate issues here:

 * Ending the output with a newline character, which according to POSIX is the
   required way to signal an End of File (for non-binary formats) and should be
   the default

 * Pretty printing the data, which is nice but should not be the default

Best,

-- 
Noah Slater, http://people.apache.org/~nslater/

Mime
View raw message