I was able to fix the error using the following query:
mongoimport --db dbName --collection collectionName --file fileName.json --jsonArray
Hopefully this is helpful to someone.
More Related Contents:
- Import more than 1 json file using mongoimport
- How to import a JSON file in ECMAScript 6?
- Getting imported json data into a data frame
- How to use mongoimport to import csv
- Date query with ISODate in mongodb doesn’t seem to work
- Convert MongoDB BsonDocument to valid JSON in C#
- How to use mongoimport to import CSV files?
- Dump Mongo Collection into JSON format
- Go JSON Naming strategy about extends
- How do I initialize a TypeScript Object with a JSON-Object?
- How to escape double quotes in JSON
- Using codable with value that is sometimes an Int and other times a String
- How to parse/deserialize dynamic JSON
- With JSONDecoder in Swift 4, can missing keys use a default value instead of having to be optional properties?
- How to use definitions in JSON schema (draft-04)
- Can’t send a post request when the ‘Content-Type’ is set to ‘application/json’
- In Excel VBA on Windows, for parsed JSON variables what is this JScriptTypeInfo anyway?
- How to format a JSON string as a table using jq?
- Why does RestTemplate not bind response representation to PagedResources?
- How to create dynamic routes with react-router-dom?
- Parsing multiple JSON objects in Go
- OpenAPI query string parameter with list of objects
- Is it possible to partially decode and update JSON? (go)
- OpenAPI path/query parameters nested structure serialization
- Decoding Error — Expected to decode Dictionary but found an array instead
- Can I encrypt my JSON data?
- Create JSON using jq from pipe-separated keys and values in bash
- Laravel: validate json object
- Call json.Unmarshal inside UnmarshalJSON function without causing stack overflow
- In postgresql, how can I return a boolean value instead of string on a jsonb key?