Just as the title says.. Is it possible to do this? Say I have a JSON array of something like this
{
"locations": [
{
"id": 1,
"loc": "miami"
},
{
"id": 2,
"loc": "manhattan"
},
{
"id": 3,
"loc": "lasVegas"
}
]
}
Sure, extend
BaseAdapterand use theJSONArrayas your backing model. However, it would be better (but by no means necessary) to convert it to a more “natural” representation in Java and use that instead.