Serialize and unserialize a PHP object-graph to/from a JSON string representation