Skip to content

Instantly share code, notes, and snippets.

View pedrochaves's full-sized avatar

Pedro Chaves pedrochaves

View GitHub Profile
@pedrochaves
pedrochaves / jQuery.stringify.js
Created March 1, 2012 16:54 — forked from chicagoworks/jQuery.stringify.js
jQuery.stringify() utility
/**
* converted stringify() to jQuery plugin.
* serializes a simple object to a JSON formatted string.
* Note: stringify() is different from jQuery.serialize() which URLEncodes form elements
* UPDATES:
* Added a fix to skip over Object.prototype members added by the prototype.js library
* USAGE:
* jQuery.ajax({
* data : {serialized_object : jQuery.stringify (JSON_Object)},