Skip to content

Instantly share code, notes, and snippets.

@wrumsby
Created July 3, 2013 00:56
Show Gist options
  • Select an option

  • Save wrumsby/5914632 to your computer and use it in GitHub Desktop.

Select an option

Save wrumsby/5914632 to your computer and use it in GitHub Desktop.
Using a YUI module
YUI().use('json-stringify', function (Y) {
'use strict';
var stringified,
parsed;
stringified = Y.JSON.stringify({
'a': 'A',
'b': 'B'
});
// :( parse isn't available
// need to use 'json-parse' or the 'json' rollup
parsed = Y.JSON.parse(stringified);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment