Force json response for registration controller
Merge branch 'master' into stable