Allowing more return types from the Response::json() method. Closes #244