How-to articles, tricks, and solutions about SERIALIZATION

How do I PHP-unserialize a jQuery-serialized form?

In PHP, you can use the unserialize function to unserialize a serialized string.

How to make a class JSON serializable

In order to make a class JSON serializable in Python, you need to define two methods: __init__ and to_json.

Print array to a file

To print an array to a file in PHP, you can use the file_put_contents() function, which writes a string to a file.

What is a serialVersionUID and why should I use it?

A serialVersionUID is a unique identifier for a serializable class. It is used to verify that the sender and receiver of a serialized object have loaded classes for that object that are compatible with respect to serialization.