Last active
November 30, 2015 03:05
-
-
Save ar-android/8f2e7ffdd351cc00d857 to your computer and use it in GitHub Desktop.
Convert JSON Array to ArrayList with Gson
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Gson gson = new Gson(); | |
| Type collectionType = new TypeToken<ArrayList<UserStatus>>() { | |
| }.getType(); | |
| data = gson.fromJson(object.toString(), collectionType); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment