How to reformat JSON in Notepad++?

前端 未结 21 1700
清酒与你
清酒与你 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 04:52

    You can view in Notepad++ no problem now (maybe older versions were bugged?)

    for win64: You can find the latest plugin here: https://github.com/kapilratnani/JSON-Viewer/releases . The latest zip file contains a .dll file.

    And then follow the github priject README instructions:

    1. Paste the file "NPPJSONViewer.dll" to Notepad++ plugin folder
    2. open a document containing a JSON string
    3. Select JSON fragment and navigate to plugins/JSON Viewer/show JSON Viewer or press "Ctrl+Alt+Shift+J"
    4. Voila!! if the JSON is valid, it will be shown in a Treeview

    It should be the same process for win32 but I cannot personally verify it.

提交回复
热议问题