When I query like the following in CouchDB:
curl -X GET "localhost:5984/content/_design/names/_view/by_name?key=%22xxx&xxx%22"
It returns:
{"error":"bad_request","reason":"invalid_json"}.
And when I remove the '&' from the key, then it is OK.
Could you please tell me how can I search a name containing '&' in VIEW? Or is the '&' forbidden in CouchDB keys?
Thanks.
Encoding for '&' works. But how to deal with '"'(%22)? As we all konw, we have to quote the value when querying in CouchDB.