Refactors Request/Response to use JsonObject