的JSONObject的樣子在android中的JSONObject解析?
{"result":
{
"id":"1",
"name":"ankur",
"email":"[email protected]",
"address":"bblock",
"designation":"devloper",
"department":"development",
"balanceleave":"5"
}
}
和我解析的代碼看起來像
Intent intent = new Intent(Login.this, Profile.class);
intent.putExtra("id", response.getString("id"));
intent.putExtra("name", response.getString("name"));
intent.putExtra("email", response.getString("email"));
intent.putExtra("address", response.getString("address"));
intent.putExtra("designation", response.getString("designation"));
intent.putExtra("department", response.getString("department"));
intent.putExtra("balanceleave", response.getString("balanceleave"));
startActivity(intent);
你能幫助我,其實我解析的JSON,並將其發送到配置文件活動顯示,如果你可以拿出一些東西,我可以發送JSONObject的配置文件,這將是偉大的!
確切的問題是什麼?你需要在某個地方解析它嗎?建議:使用Gson –