private function decode($json, $path)
{
try {
return $this->jsonDecoder->decode($json);
} catch (DecodingFailedException $e) {
throw new InvalidConfigException(sprintf('The configuration in %s could not be decoded: %s', $path, $e->getMessage()), 0, $e);
}
}