Import a JSON file?

After searching posts like this one:

I am still unable to import a JSON file. It seems that the file needs to be specially formatted in some way with a "type" prefix or similar (but where?).

My JSON file is a simple collection of documents like this:

"Date": "some date",
"Error: "an errror a user got",
"Details" : "error details"

Tried this syntax:
curl -s -XPOST localhost:9200/_bulk --data-binary @"/Users/me/Desktop/errorlog.json"

And this one:
$ curl -XPOST 'http://localhost:9200/usserrorlogs/_doc/1' -d @"/Users/me/Desktop/errorlog.json"

Do I need to pre-process the JSON first?


your json miss double quotes in Details value

Sorry, that was just a handwritten example (now corrected above). The actual JSON has the correct quotes.