Created
July 28, 2014 16:08
-
-
Save lenamuit/ae37828feefda27c342a to your computer and use it in GitHub Desktop.
Json To Map
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
| Type mapType = new TypeToken<Map<String, String>>(){}.getType(); | |
| Map<String, String> errorResponse = new Gson().fromJson(json, mapType); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment