String json = "{\"key\": \"value\"}";
try {
JSONObject object = (JSONObject) new JSONTokener(json).nextValue();
String query = object.getString("key");
Log.i("qqq", query);
} catch (Exception e) {
}
reference
http://developer.android.com/reference/org/json/JSONTokener.html
沒有留言:
發佈留言