Created
May 5, 2015 11:54
-
-
Save RicardoRFaria/f0a73a6112d720171875 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
import java.lang.reflect.Type; | |
import com.google.gson.Gson; | |
import com.google.gson.reflect.TypeToken; | |
Gson gson = new Gson(); | |
Type type = new TypeToken<Map<String, ServiceInfo>>(){}.getType(); | |
return gson.fromJson(jsonResult, type); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment