Let's not create a new class for every request:

```ruby
class RespondWithController < ActionController::Base
  class CustomerWithJson < Customer
    def to_json; super end
  end

  # ...
end
```