Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save RicardoRFaria/f0a73a6112d720171875 to your computer and use it in GitHub Desktop.
Save RicardoRFaria/f0a73a6112d720171875 to your computer and use it in GitHub Desktop.
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