2020年12月20日星期日

json.JSONException: Expected literal value at character 0

I am trying to register data but it shows this error

           org.json.JSONException: Expected literal value at character 0 of ,"{"name":"Itsme","email":"itsme@gmail.com","phoneNumber":"9876543210","UserType":"BusinessMa"},"uid":"5fdffe73cf8ee4.73224435"}  

Here is my register.java

            public void onResponse(String response) {              Log.d(TAG, "Register Response: " + response.toString());              hideDialog();               Log.d(TAG, "user added");                try {                  JSONObject jObj = new JSONObject(response.substring(14));                  boolean error = jObj.getBoolean("error");                  Log.d(TAG, "Register Response-error: " + error);  

Please Help!

https://stackoverflow.com/questions/65386667/json-jsonexception-expected-literal-value-at-character-0 December 21, 2020 at 09:58AM

没有评论:

发表评论