src/SitemapParser.php
protected function parseJson($type, \SimpleXMLElement $json)
    {
        if (!isset($json->$type)) {
            return false;
        }
        foreach ($json->$type as $url) {
            $this->addArray($type, (array)$url);
        }
        return true;
    }
protected function parseJson($type, \SimpleXMLElement $json)
    {
        if (!isset($json->$type)) {
            return false;
        }
        foreach ($json->$type as $url) {
            $this->addArray($type, (array)$url);
        }
        return true;
    }
protected function parseJson ( $ type , \ SimpleXMLElement $ json ) { if ( ! isset ( $ json -> $ type ) ) { return false ; } foreach ( $ json -> $ type as $ url ) { $ this -> addArray ( $ type , ( array ) $ url ) ; } return true ; }
Parse Json object

@param string $type Sitemap or URL
@param \SimpleXMLElement $json object
@return bool
Parse Json object