android com google gson json string to object code example Example: android gson object to json Gson gson = new Gson(); String json = gson.toJson(myObj);