Created
November 25, 2015 12:03
-
-
Save Bresiu/7d9601354b9fa8b319c6 to your computer and use it in GitHub Desktop.
This file contains 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
String jsonArray = "[\"A\",\"B\",\"C\",\"D\"]"; | |
Gson gson = new Gson(); | |
Type type = new TypeToken<ArrayList<String>>() {}.getType(); | |
ArrayList<String> arrayList = gson.fromJson(jsonArray, type); | |
System.out.println(arrayList); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment