Friday, March 28, 2014

How to parse following json data ah .. seeking help with Alibaba analytical jar package


 {
"Response": "cart",
"Cart": {
"Cartitem": [/ / shopping cart items
{
"Product": {
"Id": "1200001", / / ​​Product ID
"Name": "Abbott Gold", / / ​​product name
"Pic": "", / / ​​Product Image URL
"Price": "89", / / ​​commodity prices
"Number": 0, / / ​​merchandise inventory number, 0 is out of stock or is no
"Uplimit": "10" / / Caps Item Quantity
"Product_property": [/ / attribute
{
"Key": "Color",
"Value": "red",
},
{
"Key": "Size",
"Value": "M",
}
],
"Isgift": "false" / / if the gift
}
"ProdNum": 3 / / Number of Products
},

{
"Product": {
"Id": "1200001", / / ​​Product ID
"Name": "Abbott Gold", / / ​​product name
"Pic": "", / / ​​Product Image URL
"Price": "89", / / ​​commodity prices
"Number": 0, / / ​​merchandise inventory number, 0 is out of stock or is no
"Uplimit": "10", / / ​​Maximum number of goods purchased
"Product_property": [/ / attribute
{
"Key": "Color",
"Value": "red",
},
{
"Key": "Size",
"Value": "M",
}
]
"Isgift": "true" / / if the gift
},
"ProdNum": 1 / / Number of Products
}
],
"Prom": [/ / Enjoy promotional information
"Promotions one",
"Promotions two"
],
/ / Shopping Cart Total
"TotalCount": Total "3", / / ​​Product number
"TotalPrice": "230", / / ​​commodity amounting
"TotalPoint": a total of "230" / / product integration
}
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
How to resolve the above json data ah .. seeking help with Alibaba parsing jar package
Reply:
Alibaba parsing jar package is valid? JsonObject not be transferred directly into the line. . . String met on getString (key), encounter figures on getJsonArray, do not touch the object on getJsonObject it on ok

No comments:

Post a Comment