How to reformat JSON in Notepad++?

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

    You can use http://www.jsonlint.com/ to edit your json online if you don't have Notepad++.

    0 讨论(0)
  • 2020-12-04 05:13

    If formatting JSON is the main goal and you have VisualStudio then it is simple and easy.

    1. Open Visual Studio
    2. File -> New -> File
    3. Select Web in left side panel
    4. Select JSON
    5. Copy paste your raw JSON value
    6. Press Ctrl + K and Ctrl + D

    That's it. you will get formatted JSON Value.

    0 讨论(0)
  • 2020-12-04 05:15

    If you don't want to install a Notepad++ plugin but you have Firefox and a JSON plugin for Firefox, you can select Run -> Launch in Firefox. You get the contents formatted as JSON using your Firefox plugin.

    This is what I personally do.

    0 讨论(0)
提交回复
热议问题