JSONObject 看起来像
{"result":
{
"id":"1",
"name":"ankur",
"email":"ankur@gmail.com",
"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 发送到配置文件的东西,那就太好了!