If you get a serialized object using PHP, why do you need a serialized php object not serialized only through jQuery.
you can just convert it to json serialize in php
ob_clean(); echo json_encode(unserialize($serialized_string)); die();
In jQuery you can use AJAX dataType if the response is not set as JSON
var obj= JSON.parse(response_from_server);
source share