How to serialize public fields like Vector3 and Quaternion with System.Text.Json
System.Text.Json writes Vector3 as {} and Quaternion as {"IsIdentity":false} because they store data in public fields. Here is how IncludeFields, a custom converter, a resolver modifier and source generation fix it, measured on .NET 10 and .NET 11 RC 1.