I have some json files formatted in the following way
{
<collection_name> : [
{object},
{object}
]
}
Is there any mongo script I can use to import this kind of files or a preparsing to pass in the correct format to mongoimport
?
Update: Using philshem's command line my input gives me the following error:
exception:BSON representation of supplied JSON array is too large: code FailedToParse: FailedToParse: Date expecting integer milliseconds: offset:264
The date in question is
"uploadDate": {
"$date": "2015-02-17T10:36:34.881Z"
}