Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 79149 invoked from network); 1 Dec 2009 06:36:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Dec 2009 06:36:25 -0000 Received: (qmail 41473 invoked by uid 500); 1 Dec 2009 06:36:24 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 41392 invoked by uid 500); 1 Dec 2009 06:36:23 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 41382 invoked by uid 99); 1 Dec 2009 06:36:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Dec 2009 06:36:23 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of paul.joseph.davis@gmail.com designates 209.85.210.176 as permitted sender) Received: from [209.85.210.176] (HELO mail-yx0-f176.google.com) (209.85.210.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Dec 2009 06:36:12 +0000 Received: by yxe6 with SMTP id 6so3777060yxe.13 for ; Mon, 30 Nov 2009 22:35:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=c3qDatSHDhAs2hvR8701bvSbgaZD2+ELXCSoZcdpovM=; b=PuNnoJ5P/QPiHPt2832wW0IzMpWbtn4/I316L5ylRu9VRvZiTt8v6e2Y998XyQheOy HPZhalP/e6/HQMNtUAwlioJf5YnEJ6+3JK1gmsEDoQoIrWIYk5zrWMNxzThFthFKlEyG SMuAVLDa847rRdMUpUJ9JYG/VnzZuzi/B1fAY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=vmO5gUQZjZpy/0LamtqbeOgdcWV5xnZS/A6AlI7BCO7qmE8oVzt/9kgVwkThHAcGtB 8u3sQHlcXpUbOLa51/wnycvHRiWbCeJ1dN8SIYwrXFMg/fxeOrU8IqsOLAkfNXMLN8Ej 2WlOnxxCECdvVES294TNxHVWr4nTDuMXQRlMU= MIME-Version: 1.0 Received: by 10.101.134.40 with SMTP id l40mr2207729ann.126.1259649352076; Mon, 30 Nov 2009 22:35:52 -0800 (PST) In-Reply-To: <4B14B82E.8050802@rogerbinns.com> References: <1e2ccb10911302225r3a90dd09hce7762f8171f4c2d@mail.gmail.com> <4B14B82E.8050802@rogerbinns.com> From: Paul Davis Date: Tue, 1 Dec 2009 01:35:32 -0500 Message-ID: Subject: Re: View results JSON format To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org >> Basically, I'd like to format view results to look like simple JSON obje= cts: >> >> ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Satu= rday"] > > That is not valid JSON. =A0JSON requires an object (of which an array cou= ld be > a member): > > =A0http://www.json.org/ Actually, from Section 2 of http://www.faqs.org/rfcs/rfc4627.html: "A JSON text is a serialized object or array" Though most JSON parsers allow any bare JSON value as valid JSON. And I consider this part of the spec to be a bug anyway. HTH, Paul Davis