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.

Bug 228224 - JSON error not recognized
Summary: JSON error not recognized
Alias: None
Product: javascript
Classification: Unclassified
Component: JSON (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Petr Hejl
Depends on:
Reported: 2013-04-03 22:52 UTC by John Jullion-ceccarelli
Modified: 2013-07-12 02:30 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description John Jullion-ceccarelli 2013-04-03 22:52:18 UTC
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 did.
Comment 1 everflux 2013-06-20 10:15:07 UTC
Even the showcase of Netbeans 7.4 uses invalid JSON and shows how Netbeans is unable to detect it:

Note the trailing comma.

This is valid as of JSON5 afaik, but not for "plain old JSON":

grammar: object = begin-object [ member *( value-separator member ) ]       end-object

Defined on

Correct fix would be to configure the JSON level to be supported, see for newer JSON.
Comment 2 Petr Hejl 2013-07-11 13:18:36 UTC
Fixed in web-main 211d45bfe538.
Comment 3 Quality Engineering 2013-07-12 02:30:33 UTC
Integrated into 'main-silver', will be available in build *201307112300* on (upload may still be in progress)

User: Petr Hejl <>
Log: #228224 - JSON error not recognized