I have a string being returned from a HttpClient called data.

```
Data = {"result":[{"id":"2","contextID":"1","name":"Kitchen","image":"81"},
{"id":"1","contextID":"1","name":"Living Room","image":"18"},
{"id":"3","contextID":"1","name":"Toilet","image":"75"}]}

```

I am then performing this code:

```
resultArray = new JSONArray (data);

```

and returning this JSONArray. However, I get a JSONException error:

```
JSONObject cannot be converted to JSONArray

```

Surely this is a JSONArray not a JSONObject? Or is it a JSONObject of JSONObjects? I'm pretty new to JSON and I'm wanting to loop through and create new Locations using these imported values. Is there an easy or established way of doing this? 

Many Thanks.