I have this:
var testArray = [];
testArray["First"] = "First Test Data";
testArray["Second"] = "Second Test Data";
$.toJSON(testArray);
I then pass it back to server side. When I look at the object server side in handling the AJAX request all I have is "[]".
Is there a way to do this or something similar to achieve the ability to look up data passed back from the client?
toJSONimplementation is not converting to Json correctly.