Mongodb imported json file and reported the following error. Can you help solve it?

  mongodb, question


This kind of problem generally has several possibilities:

  1. Coding problem. Mongoimport supports utf-8 encoding. Please convert the encoding before importing.
  2. JSON format does have problems. Open it yourself with a text editor and have a look.

Since none of your documents have been introduced, I am inclined to think it is 1. Check it yourself.