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


You problem is that this is not a valid JSON document.
If you have doubts like this, go to JSON editor and paste it. It has an error on the line 9, and this means that you have to put
"a"there. The same thing is withgrade c