Skip to content

Instantly share code, notes, and snippets.

@jeremysimmons
Created February 3, 2012 22:56
Show Gist options
  • Save jeremysimmons/1733510 to your computer and use it in GitHub Desktop.
Save jeremysimmons/1733510 to your computer and use it in GitHub Desktop.
Just go to http://closure-compiler.appspot.com/
// ==ClosureCompiler==
// @compilation_level ADVANCED_OPTIMIZATIONS
// @output_file_name default.js
// @use_closure_library true
// ==/ClosureCompiler==
goog.require('goog.json');
if (!window['JSON']) window['JSON']={};
if (typeof window['JSON']['stringify'] !== 'function') window['JSON']['stringify']=goog.json.serialize;
if (typeof window['JSON']['parse'] !== 'function') window['JSON']['parse']=goog.json.parse;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment