Atmosphere/atmosphere — pull request #107 by flowersinthesand (2011-12-07 07:32:40+00:00)
Title: Use jQuery.stringifyJSON rather than JSON.stringify

What you need is only a function which converts a value into JSON string, not to provide JSON implementation. Current sources declare a global variable `JSON` and a global function `loadJSON2`, but it's not generally recommended.

First of all, to make logic clear, I recommend to include `jQuery.stringifyJSON` which satisfies your needs rather than whole `JSON` implementation.

jQuery.stringifyJSON - https://github.com/flowersinthesand/jquery-stringifyJSON