Questions about the format of the result returned by the top-up cooperation to the other party

Source: Internet
Author: User
The user submits a recharge request on the website of the partner to verify the format of the result returned from the recharge cooperation to the other party and the partner uses Post or GET methods, after the verification is completed, the corresponding data is returned to the other party. I am confused about the formats of the returned data. I personally think that the returned formats include xml format and json format. direct strings are separated by commas. I don't know the general type, and then the partner's questions about the format of the result returned by the top-up cooperation to the other party
The user submits a recharge request on the website of the partner. the partner uses Post or GET for verification. after verification, the partner returns the corresponding data to the other party. I am confused about the formats of the returned data. I personally think that the returned formats include xml format and json format. direct strings are separated by commas. I don't know which one is more common, and it is easier for partners to retrieve data? Is it possible to directly echo the returned data?

------ Solution --------------------
Sensory json format

Echo.
------ Solution --------------------
In general, both xml and json can be used. xml is more readable and json format is more common for lightweight data exchange.

I personally think that your returned data does not mean that you provide api interfaces and then return the corresponding data?
------ Solution --------------------
Json format is easy to use

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.