PDA

View Full Version : Nested JsonP structure



Weicheng.Huang
8 Nov 2013, 8:38 PM
This is the Json Content which from back-end. I wan to read ID under DG90

{
"ResponseCode": 0,
"ReponseMessage": "success",
"Orders": [
{
"D30": [

],
"D60": [

],
"D90": [

],
"DG90": [
{
"ID": 1213,
"DUE_DATE": "01\01\2013",
"STATUS": "SUBMIT",
},
{
"ID": 1211,
"DUE_DATE": "01\03\2013",
"STATUS": "SUBMIT",
},
]
}
]
}

I am not able to set root as Orders.DG90( I am using jsonp and jsonpproxy ),
so I set my root as Orders.

I already created a Model which ID is a field name and mapping: DG90.

However, I am not able to get the data.

Thanks for advance.

Weicheng.Huang
9 Nov 2013, 7:39 AM
I find out. Hope it will help someone.

Root: Orders[0].DG90

You can read the data for Orders. DG90.

Wala!!!!