android > JSon 施用

android JSon 使用String json {namejson,age:33}jsonObject new JSONObject(json)System.ou

android > JSon 使用
String json = "{name='json',age:33}";jsonObject = new JSONObject(json);System.out.println(jsonObject.get("name"));System.out.println(jsonObject.get("age"));

?

output:

json

33

?