String json = "{\"resultcode\": \"200\",\"reason\": \"Return Successd!\",\"result\": {\"area\": \"安徽省亳州市蒙城县\",\"location\": \"电信\"},\"error_code\": 0}";
JsonParser jp = new JsonParser();
JsonElement je = jp.parse(json);
JsonObject jo = je.getAsJsonObject();
JsonObject result = jo.get("result").getAsJsonObject();
JsonElement area = result.get("area");
JsonElement location = result.get("location");
System.out.println("area : "+area.getAsString());
System.out.println("location : "+location.getAsString());
GJSON 要求先定义类的,所以如果仅仅是为了解析一、两个字符串,不如使用 String的indexOf和substring处理