Created
July 15, 2013 09:24
-
-
Save litrik/5998621 to your computer and use it in GitHub Desktop.
Object to/from JSON
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
Something s = (new GsonBuilder()).create().fromJson(someString, Something.class); | |
Soemthing something = new Something(); | |
String str = new Gson().toJson(something); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment