How to reformat JSON in Notepad++?

前端 未结 21 1749
清酒与你
清酒与你 2020-12-04 04:20

I need Notepad++ to take a json string from this

{\"menu\": {\"id\": \"file\",\"value\": \"File\",\"popup\": {\"menuitem\": [{\"value\": \"New\", \"onclick\"         


        
21条回答
  •  孤城傲影
    2020-12-04 05:05

    I personally use JSON Viewer since the Notepad++ plugin doesn't work any more.

    EDIT - 24th May 2012

    I advise that you download the JSMin plugin for Notepad as mentioned in the answer. This works well for me in the latest version (v6.1.2 at time of writing).

    EDIT - 7th November 2017

    As per @danday74's comment below, JSMin is now JSToolNpp. Also, please be aware that the JSON Viewer tool is on Codeplex which will likely disappear in the near future.

    Given the above, this answer is no longer relevant and you should use Dan H's answer instead. My answer is simply here for posterity.

提交回复
热议问题