The postman parameter is a JSON data structure

Source: Internet
Author: User

In this article, the main postman is the JSON structure of the operation instructions this article takes order shipment as an example, according to the interface document to design the user under the Single interface field there are two ways to pass the field JSON data: The interface field rules:

  1. The interface is the POST request mode, the input JSON data structure is entered directly in the body of the postman in the Form-data

2, in the body, raw in the input JSON data structure, but this method I did not call success (may be our structure definition and write a little difference, follow-up asked to develop, pending research)

  • First, in headers, set Content-type to Applicationon/json,

  • Then in the body, select Raw, write the JSON data structure,

  • In JSON, multiple data structures are written and nested

3, we can use JSON to translate the JSON data we wrote is correct, the link address is: http://json.cn/

There are pictures to see, just write the JSON statement is no problem, but the data after the request is not correct, this first set aside this problem, follow-up study, Welcome to solve!

The postman parameter is a JSON data structure

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.