Home  >  Article  >  Development Tools  >  How to format json in notepad

How to format json in notepad

(*-*)浩
(*-*)浩Original
2019-08-12 14:02:395659browse

Json is a lightweight data format. During normal data transmission, its format is usually in json format, but the json data is usually encrypted and it will become a very long string. It’s dazzling to see, so how can we clearly display json data?

How to format json in notepad

Usually a lot of data files are generally saved in json format, such as linkages between provinces and municipalities, area codes, postal codes, address books, games Server area, etc. The picture below shows the detailed information of provinces and cities in various regions of the world saved in json. This is a very long string. (Recommended learning: notepad use)

How to format json in notepadThen click the plug-in menu option on the current page, and place the mouse on [Plugin Manager] in the menu that appears 】 option, click the [Show Plugin Manager] option in the submenu that appears.

How to format json in notepadThen find the J[SON Viewer] option on the pop-up page. You can see that the check in the box in front of it is not checked.

How to format json in notepad

Check the box in front of it, then click the Install button in the lower right corner, and it will start to install. After the installation is complete , a prompt window will pop up to restart the Notepad editor, click Yes.

How to format json in notepad

How to format json in notepad

At this time, return to the Notepad page, click the plug-in menu option again, and the You can see an additional [JSON Viewer] option in the menu.

How to format json in notepadThen 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 that the large string of strings just now has become very neat and orderly.

How to format json in notepadHow to format json in notepad

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn