JSONException : A JSONObject text must begin with ‘{‘ at 1 [character 2 line 1]
Are you getting error “A JSONObject text must begin with ‘{‘ at 1 [character 2 line 1]” while parsing JSON response. First you need to check whether JSON string/response is valid or invalid JSON.