json插件有两种使用方法:
一个是格式化json字符串,另一个是打开json查看器。(推荐学习: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字符串复制到新建的文件中,
使用show json viewer可用查看其树形层次结构:
注意:新建的文件中不能有非json格式的文本,否则会导致json报错。
以上就是notepad的json插件怎么使用方法的详细内容。