jquery deep Copy JSON object simple example _jquery

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.