如何对json数据格式化?
标签:
JavaScript
当我们调试接口时,返回一堆一堆的无格式的json数据,是不是很晕!例如:
{"result":"0","data":[{"sid":"77","name":"\u56fd\u751f\u7535\u5668","words":"","address":{"province_id":"","province":"11","city_id":null,"city":"149","district_id":null,"district":"1258"},"logo":"http:\/\/mobile\/images\/201710\/1507768797395409220.jpg","goods":[]},{"sid":"76","name":"\u4ebf\u548c\u95e8\u4e1a","words":"","address":{"province_id":"","province":"11","city_id":null,"city":"149","district_id":null,"district":"1251"},"logo":"http:\/\/mobile\/images\/201710\/1507767386143757512.jpg","goods":[]}]}
不要着急,我们推荐一款在线代码格式化工具,网址:www.ecjson.com,点击json格式化,可以很方便的进行数据格式化
点击查看更多内容
为 TA 点赞
评论
共同学习,写下你的评论
评论加载中...
作者其他优质文章
正在加载中
感谢您的支持,我会继续努力的~
扫码打赏,你说多少就多少
赞赏金额会直接到老师账户
支付方式
打开微信扫一扫,即可进行扫码打赏哦