I tried to import formatted json file into mongodb. but always it says that can't insert
{
"marks": [
{
"class": {
"className": "A"
},
"subject": "maths",
"score": 43,
"grade": "a"
},
{
"class": {
"className": "B"
},
"subject": "maths",
"score": 34,
"grade": "c"
}
]
}
what is the reason for this. I used command mongoimport --db sss --collection bbv --file a.json
and the error message is
exception:BSON representation of supplied JSON is too large: code FailedToParse: FailedToParse: Expecting '{': offset:0
try using
as the import command instead.
@see: Mongodb Mongoimport too large: Failure parsing errors