GSON JsonObject “Unsupported Operation Exception: null” getAsString June 5, 2023 by Tarik I had a similar problem and I had to change jsonObject.getAsString() to jsonObject.toString();