textutils.unserialize
From ComputerCraft Wiki
| Returns the data reassembled from string serializedData. Returns nil if unable to unserialize. Used mainly together with textutils.serialize(). Also exists as textutils.unserialise under CC 1.6 or later.
| |
| Syntax | textutils.unserialize(string serializedData) |
| Returns | any unserializedData |
| Part of | ComputerCraft |
| API | textutils |
Examples
| Unserializes a table and prints a value in it. | |
| Code |
local serializedTable = "{value=2}"
local myTable = textutils.unserialize( serializedTable )
print( myTable.value )
|
| Output | 2 |