在我的应用程序中,我得到了这样的 J SON 响应
{
"orderDetails": [
{
"order_details": {
"branch_code": 0,
"cust_code": 87,
"custom_instructions": "<null>",
"merchant_code": "<null>",
"order_number": 419,
"order_type_code": 1,
"packing_charge": 0,
"price": 200,
"product_code": 21,
"quantity": 1,
"value": 200
},
"order_headers": {
"branch_code": 0,
"cust_code": 87,
"delivered_time": "<null>",
"delivery_charge": 23,
"delivery_date": "2013-05-02",
"delivery_support": "",
"delivery_time": "12:52:25",
"grand_total": 354,
"merchant_code": "<null>",
"order_datetime": "2013-05-02 12:52:25",
"order_status": "Pending",
"order_type_code": 1,
"order_value": 354,
"packing_charge": 0,
"payment_status": "Pending",
"payment_type": "Cash",
"sub_total": 325,
"vat_percent": 7
}
},
{
"order_details": {
"branch_code": 0,
"cust_code": 87,
"custom_instructions": "<null>",
"merchant_code": "<null>",
"order_number": 419,
"order_type_code": 1,
"packing_charge": 0,
"price": 125,
"product_code": 35,
"quantity": 1,
"value": 125
},
"order_headers": {
"branch_code": 0,
"cust_code": 87,
"delivered_time": "<null>",
"delivery_charge": 23,
"delivery_date": "2013-05-02",
"delivery_support": "",
"delivery_time": "12:52:25",
"grand_total": 354,
"merchant_code": "<null>",
"order_datetime": "2013-05-02 12:52:25",
"order_status": "Pending",
"order_type_code": 1,
"order_value": 354,
"packing_charge": 0,
"payment_status": "Pending",
"payment_type": "Cash",
"sub_total": 325,
"vat_percent": 7
}
}
],
"orderSuccess": 1
}
我想将所有 order_details 放在单个数组列表中,我不知道如何解决这个问题。有人知道请帮我解决这个问题。