I like this extraction however maybe call it a 'server_json_response' or something more specific than just JSON. I spent about 5 mintues looking through the rspec API to see if json was just something that was provided in the request specs.