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