unserialize [function]
unserialize( string data, int mode = 2 )
Recreates a variable from the buffer with serialized data or returns null and emits a warning on failure
- this function will internally call global object creation functions specified in the data, so they must be defined and the state could change in the process
- for more info, refer to Serialization in SGScript
data = serialize({ name = "A", info = "B" });
print data; // prints random-looking, yet deterministic garbage
print unserialize(data); // prints {name=A,info=B}