Eclipse JSON file Error resolved

Source: Internet
Author: User

Sometimes our back-end elder brother does not want to write HTML, lazy to download a front-end page, the result inside the JSON file old error

Although it can work, but red X seems to be uncomfortable, how to solve it

This is because Eclipse thinks that the JSON file does not require comments, so the compile error is reported, and we can turn it off by using Eclipse's setup.

Window→preferences→validation (Validate) →json Validator (JSON Validator)

Remove the manual and build two check boxes and click Apply and Close. It's OJBK.

After eclipse compiles the project again, it finds that the JSON is no longer reporting the compilation exception

If you want to check whether the JSON file can be compiled correctly, you can copy the contents of the JSON file into a check in the JSON format of the thing, this thing on the Internet a search a lot, it is not recommended.

Eclipse JSON file Error resolved

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.