In all object route files, JSON response and error should not be sent with `response.json`. Use `View.sendJsonResult` and `View.sendJsonError` instead.