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 270619 - JSON file incorrectly marked as erroneous
Summary: JSON file incorrectly marked as erroneous
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: Dev
Hardware: PC Linux
: P3 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-12 00:26 UTC by Peter Nabbefeld
Modified: 2017-05-12 00:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Nabbefeld 2017-05-12 00:26:16 UTC
The bug has shown up in a Java project (using Maven), but I'm not sure, if JSON files need Java projects for syntax highlighting and error checking.

The problem seems to be, NetBeans assumes every JSON file to need an object container as its outermost syntactic element, while the spec doesn't require that. In fact, the nuclos project uses a JSON file consisting of an array as its outermost block, and it works, while the file is marked erroneous by NetBeans.