全对象解析json
//这里是最外层的对象信息
String msg = jsonObject.get("").getAsString();
String code = jsonObject.get("msg").getAsString();
Boolean success = jsonObject.get("success").getAsBoolean();
Gson gson = new Gson(); JsonObject data = jsonObject.get("data").getAsJsonObject(); Set<Map.Entry<String, JsonElement>> entrySet = data.entrySet();