Le JSONObject ressembleJSONObject analyse dans android?
{"result":
{
"id":"1",
"name":"ankur",
"email":"[email protected]",
"address":"bblock",
"designation":"devloper",
"department":"development",
"balanceleave":"5"
}
}
et mon code d'analyse syntaxique ressemble
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);
Pouvez-vous me aider, en fait je suis l'analyse du JSON et l'envoyer à l'activité de profil pour afficher et si vous peut comeup avec quelque chose que je peux envoyer le JSONObject pour profiler ce serait génial !!
Quel est le problème exact? Vous aurez besoin de l'analyser quelque part, n'est-ce pas? Recommandation: Utilisez Gson –