empty array in JSON`
I experienced something which I am wondering if anyone else had as well: when passed as evalScript argument, a JSON object containing an empty array is causing the error "Unterminated string constant at Line 1".
I have my evalScript statement with the syntax : evalScript("myFunc('" + JSON.stringify(myArg) + "')");
While I'm expecting it to work when the object myArg has an empty array among its properties, it throws the above-mentioned error.
Is this normal?
I'm okay with just changing an empty array to null and writing statements to watch for that in those situations where an array is expected. But hopefully it's just something I'm messing up.
