The tokenLogin action to login will get a new parameter 'jsonResponse' with values true or false (default) that the client can use to signal that the result should be returned as JSON.

http://oxpedia.org/wiki/index.php?title=HTTP_API#Token_Login_.28since_7.0. 1.29