今天遇到问题就是 前端传来json数据
[{"carModelCode":"9657","purchaseCount":1,"bidTypeArr":[1,3,10,11,12],"imgReferNum":"9G444","categoryCode":"6G919G444AA","categoryName":"后氧传感器","userID":216059,"pictures":[{"pictureID":5324788,"url":"http://s1.haoqipei.com/buy_pic/82/d49048b4960d0a9b","type":3,"resourceID":1021000721,"uid":1606878452474,"status":"success"}],"bidType":1,"imgUrl":"http://img2.nanxinwang.com/ds/resources/app/ford/v1/CTA3/L02070.png","nLogoCode":"8","vinCode":"LVSHBFAF1BF212329","referencePrice":0,"userPurchaseID":1021000721,"ycOeCode":"6G919G444AA","carMVersion":"2019","oeCode":"6G919G444AA","isTax":1,"groupNo":"1029200425","bidSum":0,"purchaseDesc":"12(国内原厂,国内品牌,国外原厂,国际品牌,其他)","isDefault":true,"imgs":"[null]","categoryDesc":"国内原厂,国内品牌,国外原厂,国外品牌,其他"}]
非常密集的一大片 ,看起来头疼。
解决:
1 自己就在用Notepad++ ,非常的好用 这里附上下载链接
https://notepad-plus-plus.org/repository/7.x/7.6.4/npp.7.6.4.Installer.x64.exe
直接就可以网页下载,安装无烦恼。
2 选择中文语言后,选择
3 步骤如下
4 安装完毕后 插件就会显示
5 最后一步 json数据格式化
6 就格式化了