title: Unable to add json file to couchdb
body: <p>I'm new to couchdb and I want to populate my database using Git Bash. I made a text document with the following:</p>
  
  <pre><code>{
    "_id" : "_design/example",
    "views" : {
      "foo" : {
        "map" : "function(doc){ emit(doc._id, doc._rev)}"
      }
    }
  }
  </code></pre>
  
  <p>I named it design.json and in Git Bash I type <code>curl -X PUT http://&lt;username&gt;:&lt;password&gt;@localhost:5984/testdb/_design/example --data-binary ‘@design.json’</code></p>
  
  <p>My problem is that instead of adding the file to my database I get a warning:</p>
  
  <blockquote>
    <p>Warning: Couldn't read data from file "design.json", this makes an empty POST.</p>
  </blockquote>
  
  <p>followed by an error:</p>
  
  <pre><code>{"error":"bad_request","reason":"invalid_json"}
  </code></pre>