Skip to content

Instantly share code, notes, and snippets.

@nmschorr
Last active July 24, 2016 03:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nmschorr/401bcefcdca50eb2374d7cf6e2e62c16 to your computer and use it in GitHub Desktop.
Save nmschorr/401bcefcdca50eb2374d7cf6e2e62c16 to your computer and use it in GitHub Desktop.
JSONArray myJsonArry = new JSONArray(longJsonString);
List<Object> myArrayList = new ArrayList<Object>(toList(myJsonArry));
Collection<Map<String,String>> mapsCol = new HashSet<Map<String,String>>();
for (int i=0; i < myArrayList.size(); i++) {
mapsCol.add((HashMap<String, String>)myArrayList.get(i));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment