From couchdb-user-return-1087-apmail-incubator-couchdb-user-archive=incubator.apache.org@incubator.apache.org Thu Aug 21 02:13:46 2008 Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 47429 invoked from network); 21 Aug 2008 02:13:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Aug 2008 02:13:46 -0000 Received: (qmail 15810 invoked by uid 500); 21 Aug 2008 02:13:43 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 15782 invoked by uid 500); 21 Aug 2008 02:13:43 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 15771 invoked by uid 99); 21 Aug 2008 02:13:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Aug 2008 19:13:43 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of funkatron@gmail.com designates 209.85.200.170 as permitted sender) Received: from [209.85.200.170] (HELO wf-out-1314.google.com) (209.85.200.170) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Aug 2008 02:12:45 +0000 Received: by wf-out-1314.google.com with SMTP id 27so704290wfd.21 for ; Wed, 20 Aug 2008 19:13:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=ioRLOqZ/97aHRG9qG6/VH9gt0OCGURJUQ945NiSlhX0=; b=en4Rpr1r748Oq5boESCiWuQplGGvpB23QRaitkVmXQcnTE7in8YezST8O2yPpVOKvs vGxS2w5aGU2xe9BP2UpXtJH5BG0EVPiJrOuKLkCQ6NMLfA3cT/pEVkeNufIq1r+8vgtt 57pfPCXBIh85m2u+uDhL0YOwtAIlht5DoMXvs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Ds16UuTG/6iIcSlHTjzsJ4+e8nzMFwNmiBLi7PonpULXl6sARyjMBnUIad2MHU/7un DDqPqFHrXAilGGMeiZ175F49cLzFyY0Bc6jUVWWRVH7mGyFfqbI8/wUGQyPml2Ibmx5R UDiR7KsDTGnYpFyp4pD1bNd1tU+fda4zngmfo= Received: by 10.142.207.8 with SMTP id e8mr286407wfg.281.1219284784857; Wed, 20 Aug 2008 19:13:04 -0700 (PDT) Received: by 10.142.135.3 with HTTP; Wed, 20 Aug 2008 19:13:04 -0700 (PDT) Message-ID: <5e0220e30808201913t67735a46m71e162cc633da2cc@mail.gmail.com> Date: Wed, 20 Aug 2008 22:13:04 -0400 From: "Ed Finkler" To: couchdb-user@incubator.apache.org Subject: Re: Appending "\n" and pretty printing output from the command line using curl (with a smidge of python) In-Reply-To: <20080821020447.GF5463@bytesexual.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <53b9568a0808201104h19b5e08dyd96b98d1d670144b@mail.gmail.com> <20080821011003.GC5463@bytesexual.org> <5e0220e30808201820w1d504205m65753db3310bae71@mail.gmail.com> <20080821020447.GF5463@bytesexual.org> X-Virus-Checked: Checked by ClamAV on apache.org Agreed on both. -- Ed Finkler http://funkatron.com AIM: funka7ron ICQ: 3922133 Skype: funka7ron On Wed, Aug 20, 2008 at 10:04 PM, Noah Slater wrote: > 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/ >