My recent job is to write interface, several front-end write front end, they need what kind of data format, I have to return such data format. This causes each interface to check whether the JSON format is what they need. However, the direct request of the browser JSON format is very messy, inconvenient to check. So I find the method of browser formatting on the Internet. The result is really, I will say in detail below.
Plugin Download Method:
One, Google browser App Store download.
Address: Https://chrome.google.com/webstore/search/yformater?hl=zh-CN
But there is a limitation to this approach, which is that brothers and sisters without walls cannot be installed.
Second, direct download
https://www.crx4chrome.com/extensions/eaomiplfdajdfecncbllnmgbdccdblkf/
This needs to be downloaded locally and then added.
Yformater is a Chrome browser plugin that formats (highlights) The JSON data returned by the server interface.
If you access the API directly using Chrome, the data we see is this:
Such data is not we have no way to analyze, grammar do not know the wrong is not wrong, the field and value is difficult to distinguish right, then we use yformater will be how?
Is it clear now?
Well, let's talk about usage, that's what's practical.
1, the most basic format
2. Collapsible JSON format
3, the string is manually selected, of course, many now have this function
Click the string, automatically check the entire string, one click to select, get rid of manual drag and drop selected.
4. Access relative path links
Directly select relative connections, right-click access, quick access to relative resources, and no need to manually construct splicing relative links.
5. Copy the formatted JSON string
Quickly copy formatted JSON string to clipboard, paste into other editor, automatically with indent
6. Matching Brackets
When you click the brackets, the corresponding parentheses are highlighted to make it easier to analyze the data structure correctly.
7. Theme Switch
You don't like black, there are three kinds of it!
If you are writing Web programs, but also write interface, do not hesitate to install Now, absolutely good!
Wrong or not all please leave a message, in the next thank you!
Browser JSON format plugin Yformater