how to receive json object in intent in android code example
Example 1: android intent data as jsonobject
Intent intent = new Intent(getActivity(), MainActivity.class);
intent.putExtra("json", jsonObject.toString());
startActivity(intent);
Example 2: android intent data as jsonobject
if(getIntent().hasExtra("json")) {
JsonObject mJsonObject = new JsonObject(getIntent().getStringExtra("json"));
}