notepad++ 使用JsonView来格式化json字符串

可能大部分小伙伴转换json的时候会去找在线格式化的网页,
但如果有很多数据呢?



这边推荐HiJson、和Notepad++ 这两款软件

HiJson之前的在写mybatis一对多的那篇文章末尾提到过,资源里面有哦,直接解压就可用。

今天我们来说一下notepad++这框文本编辑工具,
notepad++可以转换json,只需要下载jsonview这个插件即可。既方便又好用,是一个一劳永逸的方法。

这边就直接上图了,简单的说一下流程。

notepad++ 使用JsonView来格式化json字符串_第1张图片
我这个是中文的,是可以自己设置的。在setting-preferences 就可以看到了

这边闲话少说 直接切入正题,

第一步,下载jsonview这个插件
notepad++ 使用JsonView来格式化json字符串_第2张图片
可以在https://sourceforge.net/projects/nppjsonviewer/下载最新的jsonview插件

下载的是一个压缩包,可以随便放,只要自己可以找到就行。(建议和notepad放在一个包下,这样容易找得到。)
notepad++ 使用JsonView来格式化json字符串_第3张图片

下载解压后就是下面这样
notepad++ 使用JsonView来格式化json字符串_第4张图片

接着我们copy这个NPPJSONViewer.dll文件放到\plugins下面(不用创建文件夹,直接放里面就行, D:\Tools\Notepad\Notepad++\plugins这个是我的路径)
notepad++ 使用JsonView来格式化json字符串_第5张图片
第二步:
复制过来后就***重新启动 ***notepad++,要选中然后点击插件-jsonview-format json
notepad++ 使用JsonView来格式化json字符串_第6张图片

然后就可以了,记住一定要选中再执行转换

最后提供一串json字符串:你们可以试试。

{"lastPage":3,"navigatepageNums":[1,2,3],"startRow":1,"hasNextPage":true,"prePage":0,"nextPage":2,"endRow":10,"pageSize":10,"list":[{"createOper":"ogLbG1TVFao4c3c38XVpXBmYQzSE","proposalNo":"1234567812345678","createTime":1560914165632,"updateTime":1560930309750,"id":"1906191141182010530725888","operType":"2","status":"3"},{"createOper":"ogLbG1TVFao4c3c38XVpXBmYQzSE","proposalNo":"12341234123412341","createTime":1560929673428,"updateTime":1560929743801,"id":"1906191141247862433120256","operType":"2","status":"3"},{"createOper":"ogLbG1TVFao4c3c38XVpXBmYQzSE","proposalNo":"1234123412341324","createTime":1560929703124,"updateTime":1560929716181,"id":"1906191141247990023847936","operType":"2","status":"3"},{"createOper":"ogLbG1TVFao4c3c38XVpXBmYQzSE","proposalNo":"777777777777777","createTime":1560842613421,"updateTime":1560926776786,"id":"1906181140882694528303104","operType":"2","status":"3"},{"createOper":"ogLbG1TVFao4c3c38XVpXBmYQzSE","proposalNo":"1234123412341234","createTime":1560840060604,"updateTime":1560842153357,"id":"1906181140871923983450112","operType":"2","status":"3"},{"createOper":"ogLbG1TVFao4c3c38XVpXBmYQzSE","proposalNo":"132414123412343132","createTime":1560841461705,"updateTime":1560841471516,"id":"1906181140877873037443072","operType":"2","status":"2"},{"createOper":"ogLbG1TVFao4c3c38XVpXBmYQzSE","proposalNo":"7777777777777777777","createTime":1560839451736,"updateTime":1560839744801,"id":"1906181140869438115938304","operType":"2","status":"3"},{"createOper":"ogLbG1TVFao4c3c38XVpXBmYQzSE","proposalNo":"968001234567890","createTime":1560839152050,"updateTime":1560839171246,"id":"1906181140868139743969280","operType":"2","status":"2"},{"createOper":"ogLbG1TVFao4c3c38XVpXBmYQzSE","proposalNo":"11111111111111111111111111111","createTime":1560838673130,"updateTime":1560838683767,"id":"1906181140866173756243968","operType":"2","status":"2"},{"createOper":"ogLbG1TVFao4c3c38XVpXBmYQzSE","proposalNo":"1234123412341234","createTime":1560838532236,"updateTime":1560838545056,"id":"1906181140865522569576448","operType":"2","status":"2"}],"pageNum":1,"navigatePages":8,"navigateFirstPage":1,"total":29,"pages":3,"firstPage":1,"size":10,"isLastPage":false,"hasPreviousPage":false,"navigateLastPage":3,"isFirstPage":true}
 

你可能感兴趣的:(软件应用,Json)