JSONObject jsonObject;
try {
int ch;
StringBuffer b = new StringBuffer();
System.out.println("Before second while loop");
while((ch=is.read())!= -1) {
b.append((char) ch);
}
jsonObject = new JSONObject(b.toString());
String statusStr = jsonObject.getString("status");
String responseCode = jsonObject.getString("responseCode");
Log.e("","JSON STATUS"+statusStr);
Log.e("","JSON RESPONSE"+responseCode);
I am getting error org.json.JSONException: Value at
jsonObject = new JSONObject(b.toString());