$data = json_decode($body);
if (!isset($data) && json_last_error()) {
throw new UnexpectedValueException("Could not decode JSON: ".
$data = json_decode($body);
if (!isset($data) && json_last_error()) {
throw new UnexpectedValueException("Could not decode JSON: ".