By default format is html, but this can be changed by adding a suffix to the action part of the URL (for example: view.json)