I am using the following curl command to upload data to CouchDB:
curl -d @abcd.json -H "Content-Type: application/json" -X POST http://@localhost:5984/database/_bulk_docs The file contains multiple JSON documents and is valid JSON.
The response I get is: {"error":"bad_request","reason":"Request body must be a JSON object"}
I have studied other answers to similar questions but don't seem to be able to find the reason for the error.
(The file does not have a 'BOM' as far as I can see.)
I am running on Windows 10.
I have tried using the RESTClient addon in Firefox with the same result.