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?