I am trying to setup the following view on CouchDB
{ \"_id\":\"_design/id\", \"_rev\":\"1-9be2e55e05ac368da3047841f301203d\", \"language\":\"javascript\", \"
@titanoba hinted at the problem:
The -d option of curl expects the actual data as the argument!
If you want to provide the data in a file, you need to prefix it with @:
@
curl -X PUT -d @keys.json $CDB/_design/id