I had the same problem. According to the [doc][1]:

> In order to get access_token and expires (if applicable) wrapped in a
> JSON object, POST to https://stackoverflow.com/oauth/access_token/json
> instead.

  [1]: https://api.stackexchange.com/docs/authentication