I try import a JSON file with zipcodes
[
{
"zip": "1000",
"city": "Bruxelles",
"lng": 4.351697,
"lat": 50.8465573
},
{
"zip": "1020",
"city": "Laeken",
"lng": 4.3487134,
"lat": 50.883392
},
...
{
"zip": "9992",
"city": "Middelburg",
"lng": 3.4071425562584,
"lat": 51.25583235
}
]
I want every group (zip, city, lng,lat) as a document.
Adding the database be_cities and using this command for import to couchdb:
curl -X POST http://user:password&@192.168.0.205:5984/be_cities/_bulk_docs -H "Content-type: application/json" -d @zipcodes-belgium.json
But gives an error:
[1] 13218
-bash: @192.168.0.205:5984/be_cities/_bulk_docs: No such file or directory
ubuntu@ubuntu$curl: (3) Port number ended with 'F'
Try it also with PUT instead of POST, but also an error.
Someone knows how importing in bulk this whole json-file as documents?