Error about 'invalid JSON' with couchDB view but the json's fine

后端 未结 4 916
故里飘歌
故里飘歌 2021-02-04 13:31

I am trying to setup the following view on CouchDB

{
\"_id\":\"_design/id\",
\"_rev\":\"1-9be2e55e05ac368da3047841f301203d\",
\"language\":\"javascript\",
    \"         


        
4条回答
  •  一生所求
    2021-02-04 13:56

    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.

提交回复
热议问题