when i communicating with github oauth from javaservlets i am receiving authozisation code,but when i am sending again request to github for token i am getting below error?i am posting java code and error can any one please help us??
Exception when i Running Code
---------------------------------------
org.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]
If the data coming back from the call is incorrect you might want to print it out first rather than trying to convert it, just to make sure the call is correct.
It's probably easier to do that in a quick test bit of code rather than calling your servlet each time.
It wasn't my idea to go to some crazy nightclub in the middle of nowhere. I just wanted to stay home and cuddle with this tiny ad: