Want to know what format is json? How to resolve it?

Source: Internet
Author: User
Want to know what format is json? How to resolve it? S: 2287: "a: 5: {s: 6:" _ token "; s: 40:" ZTmx28Gu0KoOMEblFuwWAAXu0zRE6vbM6i95HKUG "; s: 9:" _ previous "; a: 1: {s: 3: "url"; s: 81:


What is the format of data? How does this data be parsed into json or array in PHP? Please wait online.


Reply to discussion (solution)

This is php serialize data.
$ D = unserialize ('your string'); // restores the string to an array.
Echo json_encode ($ d); // The output is in json format.

This is php serialize data.
$ D = unserialize ('your string'); // restores the string to an array.
Echo json_encode ($ d); // The output is in json format.




Thank you, Big Brother. I got it. I tested it several times before I found him serialize twice. I unserialize twice. then I can. thanks to the moderator.

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.