Have been trying on these codes and I want to send a email which will auto generate the password and the random password will then update in my database column which is the
I had the exact same problem - the string had a table like this generated before my actual JSON object. I put this table into a HTML file and displayed it - turns out it's a call stack for PHP functions:
I fixed the deprecated warnings by adding the following line in the php file:
error_reporting(E_ALL ^ E_DEPRECATED);
This fixed the reply string and I was now able to parse it successfully.
As the error message says:
[..snip..] json.JSONException: Value <br of type java.lang.String cannot be converted to JSONObject
^^^
The JSON string you're trying to parse is invalid - looks like it's got some raw HTML, which mean it's either badly generated, or PHP is inserting errors/warnings and destroying the string.