Add .as_json() to Request and Response.