Use System.Text.Json as DefaultSerializer?

Has anyone configured their .NET SDK code to use Microsoft System.Text.Json for use as the DefaultSerializer rather than JSON.NET?


I have not, but the 3.x SDK had some design changes specifically with that in mind. For example, the ITypeSerializer.Deserialize method has an overload that accepts ReadOnlyMemory. I think it should be doable.

1 Like

I went ahead and created a custom serializer implementing ITypeSerializer and using System.Text.Json, and configured my GetAsync and UpsertAsync calls to use it. So far so good.