FluentDOM\Loader\Json\SimpleXML::load PHP Метод

load() публичный Метод

Load the json string into an DOMDocument
public load ( mixed $source, string $contentType, array | Traversable | Options $options = [] ) : Document | Result | null
$source mixed
$contentType string
$options array | Traversable | Options
Результат FluentDOM\Document | FluentDOM\Loader\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;
    }