org.json.JSONException: Value <br of type java.lang.String cannot be converted to JSONObject

后端 未结 5 2222
孤独总比滥情好
孤独总比滥情好 2020-11-29 11:11

I m trying to do a registration page from an android activity connectiong the datas to my sqldatabase, I m getting this error \" org.json.JSONException: Value

First of

5条回答
  •  佛祖请我去吃肉
    2020-11-29 11:17

    Thanks I manage to correct some of the errors 2 ';' were missing and I could see the error with Log.i("tagconvertstr", "["+result+"]");

    The msg that it is showing is something like that :

    [
    font size = 1 table class=''xdebug-erroe' dir='ltr' ... loads of html code that wasn't in my initial code then....{"message":"Problem sending you the activation mail !"}]

    So there's a problem with the json format on that message "Problem sending you the activation mail" but the user was registered OK!

    So the second time i would try that code it would show me in a correct json format : "This email has already been used" ! (without any errors) but i still can't find the error in my php code : S

提交回复
热议问题