Created
July 30, 2016 19:18
-
-
Save rasheedamir/2cca0b5ea0b446ee6f87395670c57646 to your computer and use it in GitHub Desktop.
java code to convert json to hashmap using Google Gson library
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
| String jsonBody = "Your JSON String"; | |
| HashMap<String, ArrayList<Map<String, Object>>> resultMap = new Gson().fromJson(jsonBody, new TypeToken<HashMap<String, ArrayList<Map<String, Object>>>>(){}.getType()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment