Fixed issues when replaying a REST request with JSON content