You can easily pass your JSONObject
by converting it in String
like in some scenarios we send JSONObject
with url by appending it as a String
. So, Try to send it as String
like:
intent.putExtra("jsonObject", jsonObject.toString());
And receive it on other side
Intent intent = getIntent();
String jsonString = intent.getStringExtra("jsonObject");
Now you have your JSON
in a String
named jsonString
assume it as a response like when you received from Web Service and then get your JSONObject
like:
JSONObject jObj = new JSONObject(jsonString);
hope you will understand what my point is :)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…