couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Davis <paul.joseph.da...@gmail.com>
Subject Re: Duplicate keys in a view
Date Tue, 08 Dec 2009 19:22:13 GMT
On Tue, Dec 8, 2009 at 2:11 PM, Timothy Baldridge <tbaldridge@gmail.com> wrote:
> You're right...that fixed it.
>
> It seems to be that I just simply "FAIL" when it comes to JSON. I had
> assumed that in JSON (like in JavaScript) " == ' . This is not the
> case. As you'll notice above I have single quotes around the values,
> this forced me to use double quotes around the key definition so that
> it'd be accepted by CouchDB. This was causing the issue, I switched to
> double quotes and dropped the quotes on the outside of the key and it
> works fine.
>
> Thanks!
>
> Timothy
>

If you were submitting this with cURL its easy to run afoul of the
shell escaping semantics. I tend to single quote the entire URL to
account for the JSON as well as ampersands in the query string.

HTH,
Paul Davis

Mime
View raw message