How do I format JSON data?

Source: Internet
Author: User

When we debug the interface, return a bunch of unformatted JSON data, is not very faint! For example:

{"Result": "0", "data": [{"Sid": "\u56fd\u751f\u7535\u5668", "Name": ",", "Words": "," Address ": {" province_id ":" "," Province ":" One by One "," city_id ": null," City ":" 149 "," district_id ": null," District ":" 1258 "}," logo ":" http:\/\/mobile\/ Images\/201710\/1507768797395409220.jpg "," goods ": []},{" Sid ":" "", "" Name ":" \u4ebf\u548c\u95e8\u4e1a "," Words ":" ", "Address": {"province_id": "", "province": "One", "city_id": null, "City": "149", "district_id": null, "District": "1251"}, "Logo": "Http:\/\/mobile\/images\/201710\/1507767386143757512.jpg", "goods": []}]}

Don't worry, we recommend an online code formatting tool, URL: www.ecjson.com, click on the JSON format, you can easily format the data

How do I format JSON data?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.