I have this json here:
[
{
"ID": "2",
"Item Description": "Data removed for protection",
"Link": "Data removed for protection",
"Image": "Data removed for protection",
"Valid From": "Data removed for protection",
"Valid To": "Data removed for protection"
},
{
"ID": "3",
"Item Description": "Data removed for protection",
"Link": "Data removed for protection",
"Image": "Data removed for protection",
"Valid From": "Data removed for protection",
"Valid To": "Data removed for protection"
},
{
"ID": "4",
"Item Description": "Data removed for protection",
"Link": "Data removed for protection",
"Image": "Data removed for protection",
"Valid From": "Data removed for protection",
"Valid To": "Data removed for protection"
}
]
So I download this to a JSONObject called jArray. I then turn this into a JSONArray like so:
JSONArray json_array = new JSONArray(jArray);
However, whenever I try to access it like so: json_array[0][0] the IDE throws an error on it and says: Array type expected; found: 'org.json.JSONArray'.
Now, dont get me wrong, but shouldn't a JSONArray behave in the same way to access the multidimensional aspect?