This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I had this: { "questions": [ {"stars": [ {"name": "Michael Douglas"}, {"name": "Alec Baldwin"}, {"name": "Nicholas Cage"}, {"name": "Tom Hanks"}, ]}, ... and the mistake was that the last entry in the stars array should not have had a , at the end of it. The NB editor did not highlight this as an error although http://jsonlint.com/ did.
Even the showcase of Netbeans 7.4 uses invalid JSON and shows how Netbeans is unable to detect it: http://wiki.netbeans.org/wiki/images/d/dd/Json_navigator.png Note the trailing comma. This is valid as of JSON5 afaik, but not for "plain old JSON": http://www.ietf.org/rfc/rfc4627.txt?number=4627 grammar: object = begin-object [ member *( value-separator member ) ] end-object Defined on json.org: http://json.org/ Correct fix would be to configure the JSON level to be supported, see http://json5.org/ for newer JSON.
Fixed in web-main 211d45bfe538.
Integrated into 'main-silver', will be available in build *201307112300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/211d45bfe538 User: Petr Hejl <phejl@netbeans.org> Log: #228224 - JSON error not recognized