i have being trying to parse through a JSON data in android and am looking for a code that can take the values out.JSON data structure is as shown below:
{
"p":
[
{"t1":
[
{
"key":"value", "key1":"value1"
},
{
"key":"value2","key1":"value3"
}
],
"t2":
[
{
"key":"value", "key1":"value1"
},
{
"key":"value2","key1":"value3"
}
],........
}
]
}
that is my JSON data that i want to parse in android and the function that parses that data should return an array of all the values in in t1,t2 onwards but the array should not be an array of nested arrays or a nested array. please help.