```ruby
ActionDispatch::TestResponse.class_eval do
  def json
    JSON.parse(body)
  end
end
```

Convert ParseJsonBody to module prepend
user
```ruby
module ParseJsonBody
  def json
    JSON.parse(body)
  end
end

ActionDispatch::TestResponse.send(:include, ParseJsonBody)
```
assistant