but how can I put this into the frame work so that I don't have to include into every module that might use it ? if this was the front end I would include into my framework package and include that into the page.
but I don't know how you include in back end Javascript.
/** * Implements JSON stringify and parse functions * v1.0 * * By Craig Buckler, Optimalworks.net * * As featured on SitePoint.com * Please use as you wish at your own risk. * * Usage: * * // serialize a JavaScript object to a JSON string * var str = JSON.stringify(object); * * // de-serialize a JSON string to a JavaScript object * var obj = JSON.parse(str); */