Created attachment 143300 [details]
I encounter a problem i.e. when I did a format , the json structure not change
Please find the attached sample request.json file
I have the same issue. But to be more precise, format is done but not very well.
Like for xml formatter, I expect that new lines, and spaces are inserted with the right indentation.
For now, that is not the case.
Reproducible, formatting as such works, but it does not break lines
Product Version: NetBeans IDE Dev (Build 201312290308)
Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Afaik the formatting works fine. You just need to set the wrapping to your preferences. I understand we should change the defaults.
Fixed in web-main 3f307e647e30.
(In reply to Petr Hejl from comment #3)
> Afaik the formatting works fine. You just need to set the wrapping to your
> preferences. I understand we should change the defaults.
Indeed, it works fine. But change the defaults was a good idea too.
Integrated into 'main-silver', will be available in build *201401110002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Petr Hejl <firstname.lastname@example.org>
Log: #239604 - Json format should have better default prefs
I have verified in Netbeans 8.0 beta. Still the problem persist.
I verified @nightly build ,the issue has been fixed. I believe it will be available in NB 8.0 .