mongodbimport Failure - FailedToParse: Expecting '{': offset:0 mongodbimport Failure - FailedToParse: Expecting '{': offset:0 mongodb mongodb

mongodbimport Failure - FailedToParse: Expecting '{': offset:0


seems I'm much late but with the correct answer:

add --jsonArray in your statement and it will work. It should read like:

mongoimport -d mongoimport -c test --file jsonTest.json --jsonArray

Cheers!!


Make sure that your json file is formatted correctly...Remove ' [ ' brackets at starting and ending if present. Check your json if you have any empty lines. Also check that the json documents have to separated by a new line..