open_in_new
content_copy
String jsonString = new com.google.gson.Gson().toJson(myObject);