String wat = "";
try{
JSONObject responsee = new JSONObject(result);
wat = responsee.getString("Result");
}
catch(JSONException e){
Log.e("log_tag", "Error parsing data "+e.toString());
}
结果 = {“结果”:“D”}
此代码使应用程序崩溃并引发以下错误:
Error parsing data org.json.JSONException: No value for {"Result":"D"}