src/openseadragon.js
function(string) {
            if (window.JSON && window.JSON.parse) {
                $.parseJSON = window.JSON.parse;
            } else {
                // Should only be used by IE8 in non standards mode
                $.parseJSON = function(string) {
                    /*jshint evil:true*/
                    //eslint-disable-next-line no-eval
                    return eval('(' + string + ')');
                };
            }
            return $.parseJSON(string);
        }
function(string) {
            if (window.JSON && window.JSON.parse) {
                $.parseJSON = window.JSON.parse;
            } else {
                // Should only be used by IE8 in non standards mode
                $.parseJSON = function(string) {
                    /*jshint evil:true*/
                    //eslint-disable-next-line no-eval
                    return eval('(' + string + ')');
                };
            }
            return $.parseJSON(string);
        }
function ( string ) { if ( window . JSON && window . JSON . parse ) { $ . parseJSON = window . JSON . parse ; } else { // Should only be used by IE8 in non standards mode $ . parseJSON = function ( string ) { /*jshint evil:true*/ //eslint-disable-next-line no-eval return eval ( '(' + string + ')' ) ; } ; } return $ . parseJSON ( string ) ; }
Parses a JSON string into a Javascript object.
@function
@param {String} string
@returns {Object}
Parses a JSON string into a Javascript object .