The spiritual successor to fastJSON5 designed for .NET Core. Fast, conformant, and polymorphic.
With fewer unsafe parts (with plans to completely remove all unsafe blocks), support for modern collections such as HashSet<> out of the box, nullability annotations, familiar API and more.
Serialize:
string json = Json5.Serialize(new
{
myProperty = 1
});Deserialize:
MyClass? instance = Json5.Deserialize<MyClass>(json5String);