<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://ocr.michiyo.me/w/index.php?action=history&amp;feed=atom&amp;title=API%2Fserialization</id>
	<title>API/serialization - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://ocr.michiyo.me/w/index.php?action=history&amp;feed=atom&amp;title=API%2Fserialization"/>
	<link rel="alternate" type="text/html" href="https://ocr.michiyo.me/w/index.php?title=API/serialization&amp;action=history"/>
	<updated>2026-08-24T13:30:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://ocr.michiyo.me/w/index.php?title=API/serialization&amp;diff=1046&amp;oldid=prev</id>
		<title>imported&gt;OCDoc Import: Imported from legacy OpenComputers documentation at ocdoc.cil.li</title>
		<link rel="alternate" type="text/html" href="https://ocr.michiyo.me/w/index.php?title=API/serialization&amp;diff=1046&amp;oldid=prev"/>
		<updated>2026-08-24T08:08:27Z</updated>

		<summary type="html">&lt;p&gt;Imported from legacy OpenComputers documentation at ocdoc.cil.li&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Serialization API =&lt;br /&gt;
&lt;br /&gt;
This module provides simple value serialization.&lt;br /&gt;
&lt;br /&gt;
* `serialization.serialize(value: any except functions[, pretty:boolean/number]): string`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Generates a string from an object that can be parsed again using `serialization.unserialize`. The generated output is Lua code. Supports basic types (nil, boolean, number, string) and tables without cycles (will error out when cycles are detected, unless in `pretty` print mode). Properly handles NaN values and infinity.  &lt;br /&gt;
The `pretty` mode can be used to generate output for display to the user, this output will in most circumstances not be readable with `serialization.unserialize`.&lt;br /&gt;
&lt;br /&gt;
The value of pretty defines the number of entries that will be printed.  &lt;br /&gt;
If pretty is set to true it will by default print 10 entries.&lt;br /&gt;
&lt;br /&gt;
This function can be useful for sending messages via a network card.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `serialization.unserialize(value: string): any`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Restores an object previously saved with `serialization.serialize`.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
== Contents ==&lt;br /&gt;
&lt;br /&gt;
{{:API/contents}}&lt;br /&gt;
&lt;/div&gt;</summary>
		<author><name>imported&gt;OCDoc Import</name></author>
	</entry>
</feed>