This example describes a simple implementation of jquery's deep copy JSON object. Share to everyone for your reference, specific as follows:
var Oldjson = {
name: ' Quber ',
List: [1, 2, 3, 4],
OBJ: [
{name: ' Qubernet ', fun:function () {return 1; },
{name: ' Qubernet1 ', fun:function () {return 2;}}
]
};
var Newjson = $.extend (true, {}, Oldjson);
Console.log (Json.stringify (Newjson));
PS: Here again for you to recommend a few JSON online tools, I believe that you can use in future development:
Online JSON code inspection, inspection, landscaping, formatting tools:
Http://tools.jb51.net/code/json
JSON Online formatting tool:
Http://tools.jb51.net/code/jsonformat
Online Xml/json Mutual Conversion tool:
Http://tools.jb51.net/code/xmljson
JSON code online Format/beautify/compress/edit/Convert tools:
Http://tools.jb51.net/code/jsoncodeformat
C Language Style/html/css/json code formatting landscaping Tools:
Http://tools.jb51.net/code/ccode_html_css_json
More interested readers of jquery related content can view the site topics: "jquery operation JSON data tips Summary", "jquery Extension Tips Summary", "jquery common Plug-ins and Usage summary", "jquery drag and drop effects and tips summary", "jquery Table" ( Table) Summary of operational techniques, "Summary of Ajax usage in jquery", "jquery common Classic Effects Summary", "jquery animation and special effects usage Summary" and "jquery Selector usage Summary"
I hope this article will help you with the jquery program design.