json is a lightweight data format. During normal data transmission, its format is generally json format, but the json data is generally encrypted, and it will It turns into a very long string, which is dazzling to see. You can format it and then read it again. Then it will be very clear. So how to use Notepad to format json?
Recommended tutorial: notepad graphic tutorial
1. Usually there are quite a lot of data files. Saved in json format, such as the linkage of provinces and municipalities, area codes, postal codes, address books, game server areas, etc. The picture below shows the detailed information of provinces and municipalities in various regions of the world saved in json. This is a very long Very long string.
2. Then click the Plugin menu option on the current page, place the mouse on the Plugin Manager option in the menu that appears, and click Show Plugin in the submenu that appears. Manager options.
#3. Then find the JSON Viewer option in the pop-up page. You can see that the check in the box in front of it is not checked.
4. Check the box in front of it, and then click the Install button in the lower right corner. It will start to install. After the installation is completed, a pop-up will appear. Restart the Notepad editor prompt window, click Yes .
5. At this time, return to the Notepad page and click the Plug-in menu option again. You can see more JSON Viewer options in the menu that appears.
6. Then place the mouse on the JSON Viewer option, click the Format JSON option in the submenu that appears or press its shortcut key; then you can see what you just saw A large string of strings becomes very neat and orderly.
The above is the detailed content of How to format json in notepad. For more information, please follow other related articles on the PHP Chinese website!