Use JSON views for requests with the `.json` extension.
Added 404 JSON view.