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

Summary: JSON file incorrectly marked as erroneous
Product: ide Reporter: Peter Nabbefeld <epdv>
Component: CodeAssignee: issues@ide <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: Dev   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

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.