$.Util.cloneJSON( source_json )
Often there are situations to clone an JSON object. Very simplistic JSON can be cloned using this Utility function. This function cannot be used directly on an element instead it should be called using $.Util.
Parameters
Returns
Example 1
JS
$.domLoaded(function() { var org = { "name" : "Senthilnathan", "age" : 26, "project" : { "title" : "NedilJS", "site" : "www.nediljs.com" } } // copy, a clone of org var copy = $.Util.cloneJSON(org); }); | |||||||||||||||