From ps.misc at gmail.com Wed Feb 20 07:49:20 2008 From: ps.misc at gmail.com (B W) Date: Tue, 19 Feb 2008 23:49:20 -0800 Subject: [clouchdb-devel] Complex Keys in invoke-view Message-ID: <99849f280802192349o7f65082dyb6a11877e01a0e09@mail.gmail.com> Hi, Thanks for the fantastic library. I was wondering if there is a way to pass complex data, such as arrays, as keys to the invoke-view function. The reason I'm asking is that couchdb seems to only accept as query string JSON data with double-quoted strings (tested on browser), while parenscript outputs single-quoted strings. For example, ... :key (ps (list "key1" "key2")) generates url myurl?key=['key1', 'key12'] which causes the server to respond with a JSON parse error. However, myurl?key=["key1","key2"] works fine. I'm not sure if this is already covered in the library, or do I have to do some extra escaping to get around it. Any help would be appreciated. Thanks! Bob -------------- next part -------------- An HTML attachment was scrubbed... URL: