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