StackExchange.Utils icon indicating copy to clipboard operation
StackExchange.Utils copied to clipboard

StackExchange.Utils.Http - transition to System.Text.Json?

Open urza opened this issue 4 years ago • 2 comments

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?

urza avatar Jan 29 '21 15:01 urza

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

antomys avatar Jul 21 '22 13:07 antomys

Quick update : Jil is still better at performance image

antomys avatar Jul 22 '22 09:07 antomys