当我们调试接口时,返回一堆一堆的无格式的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格式化,可以很方便的进行数据格式化
原文地址:http://dayeecc.blog.51cto.com/13381334/1972626