something is wrong but seems right syntax
myfile.json
[{"name":"johndoe","created":"2012-02-16"},{"name":"marydoe","created":"2012-02-16"}]curl -X PUT http://127.0.0.1:5984/mydb/ -d @myfile.json -H "Content-Type:application/json"
=> not a valid json object
