Skip to content
简体中文

JSON serialization ​

GFramework.Game.Serializer.JsonSerializer uses Newtonsoft.Json. Use ISerializer for statically known types and IRuntimeTypeSerializer when the type is known only at runtime. Set a consistent serialization policy for storage and repositories in the composition root.

For saves, the save repository manages the versioned document. See file storage for a small read and write example.

Apache License 2.0