{"ScriptPreparationCode":"var obj = {\r\n\ttype: \u0027price\u0027,\r\n\tamount: \u0027123\u0027,\r\n\tvatPercentage: 22,\r\n\tvatIncluded: true,\r\n\tvatId: 124153,\r\n \tnestedObj: {\r\n \t\titem1: \u0027abc\u0027,\r\n \t\titem2: undefined\r\n\t}\r\n};\r\n\r\nvar copy = undefined;","TestCases":[{"Name":"Spread","Code":"copy = {...obj};","IsDeferred":false},{"Name":"structuredClone","Code":"copy = structuredClone(obj); ","IsDeferred":false},{"Name":"JSON","Code":"copy = JSON.parse(JSON.stringify(obj)); ","IsDeferred":false},{"Name":"simple assignment","Code":"copy = obj; ","IsDeferred":false}]}