public function importJson($jsonData)
    {
        $json = json_decode($jsonData, true);

        if ($json === null) {
            throw new \InvalidArgumentException("Footprint json is not a valid");
        }

        if (!is_array($json)) {
            throw new \InvalidArgumentException("Footprint json data is not a valid");
        }

        $this->_data += $json;
    }
public function importJson($jsonData)
    {
        $json = json_decode($jsonData, true);

        if ($json === null) {
            throw new \InvalidArgumentException("Footprint json is not a valid");
        }

        if (!is_array($json)) {
            throw new \InvalidArgumentException("Footprint json data is not a valid");
        }

        $this->_data += $json;
    }
public function importJson ( $ jsonData ) { $ json = json_decode ( $ jsonData , true ) ; if ( $ json === null ) { throw new \ InvalidArgumentException ( "Footprint json is not a valid" ) ; } if ( ! is_array ( $ json ) ) { throw new \ InvalidArgumentException ( "Footprint json data is not a valid" ) ; } $ this -> _data += $ json ; }
Import footprints from json string

@param string $jsonData

@return void
Import footprints from json string