Not sure, I've just seen the following:

```ruby
Customer.any_instance.stubs(:to_json).returns('{"name": "David"}')
```

But it looks like none of the tests care about the actual JSON anyway. So it should be good.