StackExchange.Utils
StackExchange.Utils copied to clipboard
StackExchange.Utils.Http - transition to System.Text.Json?
Hi, currently StackExchange.Utils.Http has dependecy on Jil for Json serialization and deserialization.
As you probably know, System.Text.Json (STJ) seems to be developed with performance in mind. Here in these benchamarks from summer 2020 it already looks comparable or even faster then jil in some situations - https://github.com/dotnet/runtime/issues/36635#issuecomment-643488362
STJ being package by Microsoft will probably have better support and it's always nice to decrease dependecies in the project chain supply so I I was wondering if you plan to transition to STE for your Utils.Http package?
I think it would be cool to have STJ as default but customizable deserializer. For example : in a project we want to specify Newtonsoft.Json
for deserializing responses or SpanJson
Quick update : Jil is still better at performance