Json error: Value <br of type java.lang.String cannot be converted to JSONObject
- By 23tony
- Android Development
- 2 Replies
It would really help if you could edit or repost your code using tags to preserve the formatting. Use [ code ] and [ /code ] - but without the spaces
I assume the error is happening here?
I'm curious why you're creating a new String instead of just using
I assume the error is happening here?
Code:
JSONObject jObj = new JSONObject(new String(response));
boolean error = jObj.getBoolean("error");
I'm curious why you're creating a new String instead of just using
Code:
JSONObject jObj = new JSONObject(response.toString());



I was enjoying interacting with him, and having another old geezer around here, and then he's just...gone... 
.