{"ScriptPreparationCode":"var MyObject = {\r\n string: \u0027Creates a deep copy of source, which should be an object or an array.\u0027,\r\n number: 1234567890,\r\n boolean: true,\r\n nullable: null,\r\n json: {\r\n stringify: \u0027JSON.stringify() method converts a JavaScript value to a JSON string....\u0027,\r\n parse: \u0027JSON.parse() method parses a JSON string...\u0027\r\n },\r\n array: [\r\n {\r\n id: 5,\r\n blocked: false,\r\n avatar: null,\r\n user: {\r\n firstName: \u0027Alan\u0027,\r\n lastName: \u0027Walker\u0027\r\n },\r\n },\r\n {\r\n id: 5688,\r\n blocked: false,\r\n avatar: null,\r\n user: {\r\n firstName: \u0027Anna\u0027,\r\n lastName: \u0027Wanderwood\u0027\r\n },\r\n },\r\n {\r\n id: 80043,\r\n blocked: true,\r\n avatar: \u0027image.jpg\u0027,\r\n user: {\r\n firstName: \u0027Serj\u0027,\r\n lastName: \u0027Cooper\u0027\r\n },\r\n },\r\n ]\r\n};\r\n\r\nvar myCopy = null;\r\n","TestCases":[{"Name":"Lodash cloneDeep","Code":"myCopy = _.cloneDeep(MyObject);","IsDeferred":false},{"Name":"Json clone","Code":"myCopy = JSON.parse(JSON.stringify(MyObject));","IsDeferred":false}]}