[clouchdb-devel] Complex Keys in invoke-view

B W ps.misc at gmail.com
Wed Feb 20 07:49:20 UTC 2008


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: <https://mailman.common-lisp.net/pipermail/clouchdb-devel/attachments/20080219/016dced4/attachment.html>


More information about the clouchdb-devel mailing list