incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Damien Katz <dam...@apache.org>
Subject Re: Very elementary question
Date Wed, 12 Nov 2008 23:12:35 GMT
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?


Mime
View raw message