protected function jsonDecode($string)
{
if (function_exists('json_decode')) {
return json_decode($string, (bool) $this->jsonDecodeType);
}
if (class_exists(Json::class)) {
return Json::decode($string, (int) $this->jsonDecodeType);
}
throw new Exception\DomainException(sprintf('Unable to parse JSON request, due to missing ext/json and/or %s', Json::class));
}