Is there a way to convert JSON Array to normal Java Array for android ListView data binding?
Tell me more
×
Stack Overflow is a question and answer site for
professional and enthusiast programmers. It's 100% free, no registration required.
|
|||||||
|
If you don't already have a JSONArray object, call
Then simply loop through that, building your own array. This code assumes it's an array of strings, it shouldn't be hard to modify to suit your particular array structure.
|
|||||||||||
|
Maybe it's only a workaround (not very efficient) but you could do something like this:
Obviously you can change the ' |
|||||
|
How about using java.util.Arrays?
|
|||||||
|