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 152546 - Code folding of JSON does not always work
Summary: Code folding of JSON does not always work
Status: RESOLVED DUPLICATE of bug 150887
Alias: None
Product: javascript
Classification: Unclassified
Component: JSON (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on: 152545
Blocks:
  Show dependency tree
 
Reported: 2008-11-06 14:59 UTC by koppor
Modified: 2009-09-22 10:32 UTC (History)
1 user (show)

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 koppor 2008-11-06 14:59:15 UTC
The code folding at following file is completely disabled:
http://code.google.com/p/oryx-editor/source/browse/trunk/editor/data/stencilsets/bpel/bpel.json

Is this a general JSON issue or happening at that file only?
Comment 1 koppor 2008-11-06 20:03:41 UTC
It happens if the error "Invalid JSON: unexpected token NAME" occurs together with a "Trailing comma (not supported by
all browsers). If only one of the syntax errors/warnings is there, folding works as expected.

Minimum example:

{
    test : [
        {
            "length":undefined,
        }
    ]
}
Comment 2 Petr Pisl 2009-09-22 10:32:41 UTC
Code folding stopped to work for JSON file after rewriting JavaScript editor to new CSL infrastructure. See issue #150887

*** This issue has been marked as a duplicate of 150887 ***