{"repo":"Cretezy/godot-object-serializer","free":true,"listed":false,"github":"https://github.com/Cretezy/godot-object-serializer","clone":"git clone https://github.com/Cretezy/godot-object-serializer.git","description":"Safely serialize/deserialize objects (and built-in Godot types) to JSON or binary in Godot","language":"GDScript","stars":77,"topics":["godot"],"license":"MIT","category":"game-templates","readme_excerpt":"Godot Object Serializer Safely serialize/deserialize objects (and built-in Godot types) to JSON or binary in Godot. Enables registration of scripts/classes and conversion of values to/from JSON or bytes, without any risk of code execution. Perfect for save state systems or networking. Godot's built-in serialization (such as var to bytes / FileAccess.store var / JSON.from native / JSON.to native ) cannot safely serialize objects (without using full objects / var to bytes with objects , which allows code execution), but this library can! View in Asset Library Features: - Safety : No remote code execution, can be used for untrusted data (e.g. save state system or networking). - Dictionary/binary mode : Dictionary mode can be used for JSON serialization ( JSON.stringify / JSON.parse string ), while binary mode can be used with binary serialization ( var to bytes / bytes to var ). Provides helpers to serialize directly to JSON/binary. - Objects : Objects can be serialized, including enums, inner classes, and nested values. Supports class constructors and custom serializer/deserializer. - Built-in types : Supports all built-in value types (Vector2/3/4/i, Rect2/i, Transform2D/3D, Quaternion, Color, Plane, Basis, AABB, Projection, Packed\\ Array, etc). - Efficient JSON bytes : When serializing to JSON, PackedByteArray s are efficiently serialized as base64, reducing the serialized byte count by 40% - Non-string JSON dictionary keys : Supports deserializing int / float / bool keys from","default_branch":null,"files":null,"tree":[],"storefront":"/r/Cretezy","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Cretezy/godot-object-serializer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}