Set default format for register endpoint to be json. This is for
jbuilder.