Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 91728 invoked from network); 12 Nov 2008 23:14:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Nov 2008 23:14:09 -0000 Received: (qmail 88274 invoked by uid 500); 12 Nov 2008 23:14:15 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 88246 invoked by uid 500); 12 Nov 2008 23:14:14 -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 88235 invoked by uid 99); 12 Nov 2008 23:14:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Nov 2008 15:14:14 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.68.5.9] (HELO relay00.pair.com) (209.68.5.9) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 12 Nov 2008 23:12:55 +0000 Received: (qmail 33390 invoked from network); 12 Nov 2008 23:12:36 -0000 Received: from 96.33.90.152 (HELO ?192.168.1.200?) (96.33.90.152) by relay00.pair.com with SMTP; 12 Nov 2008 23:12:36 -0000 X-pair-Authenticated: 96.33.90.152 Message-Id: <7CFD926E-D3D4-4700-B9A5-8E9A512ABB68@apache.org> From: Damien Katz To: couchdb-user@incubator.apache.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Subject: Re: Very elementary question Date: Wed, 12 Nov 2008 18:12:35 -0500 References: X-Mailer: Apple Mail (2.929.2) X-Virus-Checked: Checked by ClamAV on apache.org I don't know about Peepcode, but I'm guessing the library is expecting a object, and looks to be iterating over your string somehow thinking it's an object with the offsets as keys and the individual characters as values.. Try giving it something like {body:"abc"}. On Nov 12, 2008, at 12:20 PM, Pito Salas wrote: > I am experimenting with CouchDb, via PeepCode. > > I am finding that in the _utils browser interface, the values are > rendered in a way that is different from the PeepCode and before > spending too much time on a bad install I thought I'd ask if anyone > has an explanation, and whether I should just ignore the difference or > there's actually something broken here. Take a look at the screenshots > and you see that: > > values like "abc" are not accepted for a field (JSON error) > values like ["abc"] are accepted, but then are spewed back as 0 > {"0":"a","1":"b","2":"c","3":"d"} > > Comments?