search

Home  >  Q&A  >  body text

When inserting a json file into MongoDB, the above error message appears. How to fix it?

The error message is as follows

伊谢尔伦伊谢尔伦2895 days ago565

reply all(2)I'll reply

  • 漂亮男人

    漂亮男人2017-05-02 09:26:03

    The json file has a format error, please post the json file and have a look.

    reply
    0
  • 天蓬老师

    天蓬老师2017-05-02 09:26:03

    2 ideas for reference:

    1. Check whether the json file is correct. The prompt here is document #281;

    You can use the website http://jsonlint.com/ to check

    2. If there is a json array, you need to add the option -jsonArray

    reply
    0
  • Cancelreply