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 =
AFAIK, there is no $.toJSON method in jQuery, you are probably looking for $.parseJSON and by the way you are already creating JSON here:
$.toJSON
var thing = {tee: tee, vote: vote};