Skip to content

flowersinthesand/stringifyJSON

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

stringifyJSON

The jQuery.parseJSON"s best friend

Converts a value to JSON string.

alert(stringifyJSON({name: "Donghwan"}) === "{"name":"Donghwan"}");

stringifyJSON is useful for those who want to use JSON.stringify in browsers which don"t implement the JSON object and are reluctant to declare global variable JSON and add toJSON methods to prototypes, such as plugin developers. In cases where the native JSON.stringify is avilable, stringifyJSON uses it by default.

Because the JSON standard is frozen and this plugin is heavily based on Douglas Crockford"s reference implementation, these sources are unlikely to be modified. So, you may take the latest or copy and paste it freely.

About

The jQuery.parseJSON"s best friend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published