使用json插件
json插件主要提供兩個功能:
一個是格式化JSON字符串,另一個是打開JSON查看器。(推薦學(xué)習(xí):notepad使用)
格式化JSON字符串
插件(P) -> JSON Viewer -> format JSON
格式化之前的JSON:
{"startIndex":0,"pageSize":25,"totalCount":1,"resultSize":1,"sortType":"asc","sortBy":"id","queryTimeMS":1553232540936,"vXGroups":[{"id":1,"createDate":"2018-12-12T06:59:53Z","updateDate":"2018-12-12T06:59:53Z","owner":"Admin","updatedBy":"Admin","name":"public","description":"public group","groupType":0,"groupSource":0,"isVisible":1}]}
格式化之后的JSON:
{ "startIndex": 0, "pageSize": 25, "totalCount": 1, "resultSize": 1, "sortType": "asc", "sortBy": "id", "queryTimeMS": 1553232540936, "vXGroups": [ { "id": 1, "createDate": "2018-12-12T06:59:53Z", "updateDate": "2018-12-12T06:59:53Z", "owner": "Admin", "updatedBy": "Admin", "name": "public", "description": "public group", "groupType": 0, "groupSource": 0, "isVisible": 1 } ] }
打開JSON查看器
插件(P) -> JSON Viewer -> Show JSON Viewer
將JSON字符串復(fù)制到新建的文件中,
使用Show JSON Viewer可用查看其樹形層次結(jié)構(gòu):
注意:新建的文件中不能有非JSON格式的文本,否則會導(dǎo)致JSON報錯。
? 版權(quán)聲明
文章版權(quán)歸作者所有,未經(jīng)允許請勿轉(zhuǎn)載。
THE END