Guest User

orangeloops

a guest
Oct 24th, 2019
4,976
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.13 KB | None | 0 0
  1.  
  2. // For serializing
  3. String json = new Gson().toJson(user);
  4.  
  5. // For deserializing
  6. User user = new Gson().fromJson(json, User.class);
Advertisement
Add Comment
Please, Sign In to add comment