protected static function convert($string, $path)
    {
        $data = json_decode($string, true);
        //
        if (json_last_error() == JSON_ERROR_SYNTAX) {
            throw new InfoStructureException($path);
        }
        //
        return $data;
    }
protected static function convert($string, $path)
    {
        $data = json_decode($string, true);
        //
        if (json_last_error() == JSON_ERROR_SYNTAX) {
            throw new InfoStructureException($path);
        }
        //
        return $data;
    }
protected static function convert ( $ string , $ path ) { $ data = json_decode ( $ string , true ) ; // if ( json_last_error ( ) == JSON_ERROR_SYNTAX ) { throw new InfoStructureException ( $ path ) ; } // return $ data ; }
Convert JSON to PHP array.
Convert JSON to PHP array .