document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1.  
  2. // For serializing
  3. String json = new Gson().toJson(user);
  4.  
  5. // For deserializing
  6. User user = new Gson().fromJson(json, User.class);
');