{"ScriptPreparationCode":"var obj = {\r\n a: {\r\n b: [ { c: \u0027Before\u0027 } ]\r\n }\r\n};\r\n\r\nfunction setValue(obj, path, value) {\r\n var a = path.split(\u0027.\u0027)\r\n var o = obj\r\n while (a.length - 1) {\r\n var n = a.shift()\r\n if (!(n in o)) o[n] = {}\r\n o = o[n]\r\n }\r\n o[a[0]] = value\r\n}\r\n\r\n/*your preparation JavaScript code goes here\r\nTo execute async code during the script preparation, wrap it as function globalMeasureThatScriptPrepareFunction, example:*/\r\nasync function globalMeasureThatScriptPrepareFunction() {\r\n // This function is optional, feel free to remove it.\r\n // await someThing();\r\n}","TestCases":[{"Name":"Lodash","Code":"_.set(obj, \u0022a.b.0.c\u0022, \u0022After\u0022);","IsDeferred":false},{"Name":"Simple","Code":"setValue(obj, \u0022a.b.0.c\u0022, \u0022After\u0022);","IsDeferred":false}]}