public function render($json = null)
{
if (null === $json) {
$json = $this->renderChildren();
if (true === empty($json)) {
return null;
}
}
$value = json_decode($json, true);
if (JSON_ERROR_NONE !== json_last_error()) {
throw new Exception('The provided argument is invalid JSON.', 1358440054);
}
return $value;
}