NPP-JSONViewer / JSON-Viewer

A JSON viewer plugin for Notepad++. Displays the selected JSON string in a tree view.
MIT License
748 stars 151 forks source link

Bug report: Auto format json file when opened option doesn't work #153

Closed MikoMMM closed 1 year ago

MikoMMM commented 2 years ago

As the title says also support for txt files would be nice too

SinghRajenM commented 1 year ago

@MikoMMM , could you please mention steps to reproduce the issue. Also, please provide example json (if possible) which is not working for you.

SinghRajenM commented 1 year ago

Didn't hear anything from user. Hence, closing it.

mdodge-ecgrow commented 1 year ago

I am having the same issue. Should I open a new ticket? I downloaded the latest update and installed it. I found the new "Setting" option and went in there and checked "Auto format json file when opened". I hit OK and opened my JSON file, and it was not auto formatted.

My JSON:

{"type":"asdf","nodeRoute":"/asdf","url":"https://apiasdf","method":"POST","batch":true,"orderData":{"orderNo":"asdf","itemNumber":"asdf","outputQuantity":40,"lotNo":"asdf","palletCount":1,"orderLineNum":4,"shiftNum":1,"shiftTallyCount":6,"isPartial":false},"body":{"requests":[{"method":"POST","id":"OUTPUT-JOURNAL-asdf","url":"companasd","headers":{"Content-Type":"application/json"},"body":{"orderNo":"asdf","itemNumber":"asdf","outputQuantity":40,"lotNo":"asdf"}},{"method":"POST","id":"NAV-POST","dependsOn":["OUTPUT-JOURNAL-asd"],"url":"compasdf","headers":{"Content-Type":"application/json"}}]}}

And my file does have a .json extension.