I have a strange problem when I try to insert the data into the MongoDB using SleepyMongoose API. I have installed curl, openSSL, pyMongo, Phyton and everything is configured. I am running SleepyMongoose Server, I am connected to my database locally but when I try to insert some data into the data base using this commands:
curl --data "docs=[{"x":1}]" "http://localhost:27080/foo/bar/_insert"
I am getting error
enter code here{"ok" : 0, "errmsg" : "couldn't parse JSON: [{x:1]]"}
Database foo is created and visible in MongoDB but collection bar is not created.
I cannot figure out why I am getting this error. System which I am using is Windows 8.1 x64
0 comments:
Post a Comment