I've my JSON like this:
{
"shops": [
{
"id": "831",
"name": "18 and East",
"categories": [
"1",
"12",
"13"
],
"locations": [
{
"lat": "53.403297",
"lng": "-2.978689",
"address": "Bold Street Liverpoool, L1 4EA"
},
{
"lat": "51.590111",
"lng": "-0.146134",
"address": "58 Fortis Green Road, London, N10 3HN"
},
{
"lat": "53.406738",
"lng": "-2.981188",
"address": "137-139 Market Square Liverpool"
}
],
"image": "5574-18-and-East-sale.jpg"
}
....
And I have Shop.java, Response.java and Locations.java like this (this files gets the data as objects):
Now I want to parse the address into following file, I tried several ways but I'm not able to parse the address from array. And I'm able to parse id, name and image.
can someone helpme to solve this problem?