Possible Duplicate:
Best way to transfer an array between PHP and Javascript
I am trying to return a series of arrays from PHP to javascript using AJAX.
I have tried pre-formatting the email addresses as a JSON object and returning that to my JS script and then parsing it as JSON but no luck.
I have a main array called emails, and I want these arrays returned from PHP and to be converted to a JS array, I have tried:
emails = $.makeArray($.parseJSON(email)) ;
But with no luck.
How can I achieve what I want?