GSON - Get JSON value from String
double result = jobj.get("test").getAsDouble();
Try
String result = jobj.get("test").getAsString();
get(String) method returns JsonElement object which you then should get the value from.
double result = jobj.get("test").getAsDouble();
Try
String result = jobj.get("test").getAsString();
get(String) method returns JsonElement object which you then should get the value from.