I am wondering why OAuth2 spec does not define a JSON response mode to return the access token in the implicit grant flow. Is it because there was no time to agree upon this and spec it? Or does returning an access token in a JSON format open certain security vulnerabilities? If so, it would be interesting to know which (I suspect that returning JSON into malicious script tags could be mitigated by verifying either ContentType or RequestedWith header of the request).
There is a wide range of modern javascript applications with a need to refresh the access token. This is typically needed when permissions for protected resources change often (for example, when certain users are giving permissions to other users for the resources they own). In this case it is necessary to obtain an access token every time a protected resources is accessed.
Currently OAuth2 spec provides 2 response modes: fragment and form post (in a draft). Fragment response requires a redirect which is not friendly to the user. It is also possible though to post a form with method GET into a hidden iframe which would callback to the javascript code that would pass the access token to the parent window. But this is rather hackish approach from the development point of view.
It would be much cleaner to just return the access token in a JSON format via an AJAX request given that it would not compromise security.