couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zachary Zolton <zachary.zol...@gmail.com>
Subject Re: small fix to couch.js and question
Date Tue, 17 Aug 2010 17:57:21 GMT
You have to URL encode the JSON (in your example "bla\"bla") for keys:
?startkey=%22bla%5C%22blah%22

I tried it via curl; it was accepted.

2010/8/17 Dmitry Yakimov <support@activekitten.com>:
> Hi,
>
> It seems that in couch.js in this.bulkSave function:
>
> this line:     var newUuids = CouchDB.newUuids(docs.length);
> should be like that:     var newUuids = CouchDB.newUuids(newCount);
>
> And a question - how can I use double quotes in request by key:
>
> something like that does not work: ?startkey="bla\"bla"
> it gives me invalid JSON. The reason that some of my keys contains double
> quotes. It is possible in couchDB?
>
> Best Regards,
> Dmitry Yakimov
>

Mime
View raw message