I am trying to setup the following view on CouchDB
{ \"_id\":\"_design/id\", \"_rev\":\"1-9be2e55e05ac368da3047841f301203d\", \"language\":\"javascript\", \"
The reason
curl -vX PUT http://localhost:5984/dbname/docid -d {"foo" : "bar"}
Doesn't work is that the quotes are interpolated by the shell using the single quotes escapes the quotes.