/**
* Load the json string into an DOMDocument
*
* @param mixed $source
* @param string $contentType
* @param array|\Traversable|Options $options
* @return Document|Result|NULL
*/
public function load($source, $contentType, $options = [])
{
if (FALSE !== ($json = $this->getJson($source, $contentType))) {
$document = new Document('1.0', 'UTF-8');
$document->appendChild($root = $document->createElementNS(self::XMLNS, 'json:json'));
$this->transferTo($root, $json);
return $document;
}
return NULL;
}