Important: 2.0 is not backward compatible with previous versions
This plug-in can easily perform json operations,
Var thing = {plugin: 'jquery-json', version: 2.4}; var encoded = $. toJSON (thing); // '{"plugin": "jquery-json", "version": 2.4}' var name = $. evalJSON (encoded ). plugin; // "jquery-json" var version = $. evalJSON (encoded ). version; // 2.4
ToJSON: Serialized JavaScript Object, number, string or array to JSON object EvalJSON: Convert from JSON to Javascript Object (convert json to string) SecureEvalJSON: Converts from JSON to Javascript, but does so while checking to see if the source is actually JSON, and not with other Javascript statements thrown in. QuoteString: Places quotes around a string, and intelligently escapes any quote, backslash, or control characters. quoteString: a string that is placed in quotation marks and intelligently defines any quotation marks, backslash, or control characters. SecureEvalJSON: Convert from JSON to Javascript, but check at the same time to see if the source is actually JSON, rather than throwing an inch with other JavaScript statements.