Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@kkashyap1707
Created June 27, 2016 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kkashyap1707/c7a1f7c7b415236df988f75db6193ba4 to your computer and use it in GitHub Desktop.
Save kkashyap1707/c7a1f7c7b415236df988f75db6193ba4 to your computer and use it in GitHub Desktop.
public static Object GSON(String Input,Class modelClass)
{
Gson gson = new GsonBuilder().setPrettyPrinting().create();
Object object = gson.fromJson(Input, modelClass);
return object;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment