Process returned token as json

Need to process returned token as json to have the token stored in OAuth2.