I need to parse a below JSON:
{
"this_year_ti": "TYMN01",
"last_year_ti": "LYMN01",
"this_year": [
{
"date": "20140310 14:20:10",
"amount": 5.2,
"usage": 3.2,
"ratio": 1
},
{
"date": "20140310 14:20:10",
"amount": 5.2,
"usage": 3.2,
"ratio": 1
}
],
"last_year": [
{
"date": "20130310 15:20:10",
"amount": 6.87,
"usage": 4.2,
"ratio": 2
},
{
"date": "20130310 15:20:10",
"amount": 6.87,
"usage": 4.2,
"ratio": 2
}
]
}
That is: The Json contains: 2 elements ("this_year_ti" and "last_year_ti") and 2 arrays ("this_year" and "last_year").
How can I parse it into an Object A that have 2 strings and 2 lists?
Please help me with this difficulty.