I'm making a PHP model to store a serialized array in a database. The array is then accessed via AJAX through an HTTP request.
Is there a JavaScript function to serialize and unserialize arrays like PHP?
EDIT: This is the php function http://uk.php.net/manual/en/function.serialize.php