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