The JSONObject looks like
{"result":
{
"id":"1",
"name":"ankur",
"email":"[email protected]",
"address":"bblock",
"designation":"devloper",
"department":"development",
"balanceleave":"5"
}
}
and my parse code looks like
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);
Can you help me out, actually I am parsing the JSON and sending it to the profile activity to display and if you can comeup with something that I can send the JSONObject to profile that would be great!!