GSON - Obtener valor JSON de String
Intento analizar la cadena JSON "{'test': '100.00'}" y obtener el valor: 100.00 con la biblioteca GSON. Mi código se ve así:
String myJSONString = "{'test': '100.00'}";
JsonObject jobj = new Gson().fromJson(myJSONString, JsonObject.class);
String result = jobj.get("test").toString();
System.out.println(result);
Mi resultado se ve así: "100.00", pero necesitaría solo 100.00 sin las comillas. ¿Cómo se puede archivar esto?