I\'m having problems sending a JSON jQuery array via Ajax to a PHP script. What is the problem here:
var tee = $(\'#voting_image img\').attr(\'id\');
var vote =
Check out this question: Serializing to JSON in jQuery
The accepted answer links to a JSON serialization plug-in recommended by John Resig (the creator of jQuery). It doesn't really address your specific bug, but perhaps using that plug-in will help you arrive at a stable solution.
From looking at it briefly, if you use that plug-in, it appears you would then replace this line:
var encoded = $.toJSON(thing);
with this:
var encoded = JSON.stringify(thing);
Hope that helps!