Don't throw exception if access token is in JSON

If params are passed as JSON (instead of array), check and see if the access token is part of the JSON.

If it is, do not throw the "You need to give parameters as array if you want to give the token within the URI" exception.