Checks if JSON object is available, this is required as we support the API running without a
window /document (eg. Node server, electron webworkers) and if we attempt to assign a history
object to a local variable or pass as an argument an "Uncaught ReferenceError: JSON is not defined"
exception will be thrown.
Defined as a function to support lazy / late binding environments.
Checks if JSON object is available, this is required as we support the API running without a window /document (eg. Node server, electron webworkers) and if we attempt to assign a history object to a local variable or pass as an argument an "Uncaught ReferenceError: JSON is not defined" exception will be thrown. Defined as a function to support lazy / late binding environments.