You’re calling `to_json` on the wrong bit here: it should only be the response body that gets JSON-serialised, not all the parameters to `to_return`.