Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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