Javaweb Display logistics information to JSON display (servlet) by courier number

Source: Internet
Author: User

The main focus of this article is how to get the logistics information into JSON format and display it in the foreground.

Display logistics information, I pass is a ' express bird ' platform, this platform registered real name can have free query times, for practiced hand, enough. The Courier Bird will provide its own interface, we just need to call it just fine.

Such as:

The method of querying the logistics call is as follows: (method is provided by ' Express Bird ', direct call), the result is not a complete JSON format, the content information is wrapped by {}, and the standard JSON format is ' [' Start and End With '] ', so we need to manually add to the JSON.

JSON foreground display:

The results of the query show:

{"Logisticcode": "Here shows The Courier number", "Shippercode": "Here shows The Courier type", "Traces": [{"Acceptstation": "Here shows which place has been received", "accep Ttime ":" Here shows the receive Time "}]}

Javaweb Display logistics information to JSON display (servlet) by courier number

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.