couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "john.tiger" <john.tigernas...@gmail.com>
Subject PUT json data
Date Fri, 17 Feb 2012 02:34:28 GMT
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

Mime
View raw message