How to reformat JSON in Notepad++?

前端 未结 21 1718
清酒与你
清酒与你 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:56

    You require a plugin to format JSON. To install the plugin do the following steps:

    1. Open notepad++ -> ALT+P -> Plugin Manager -> Selcet JSON Viewer -> Click Install
    2. Restart notepad++
    3. Now you can use shortcut to format json as CTRL + ALT +SHIFT + M or ALT+P -> Plugin Manager -> JSON Viewer -> Format JSON

提交回复
热议问题