Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
urza opened this issue Jan 29, 2021 · 2 comments
Open

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

urza opened this issue Jan 29, 2021 · 2 comments

Comments

@urza
Copy link

urza commented Jan 29, 2021

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 - dotnet/runtime#36635 (comment)

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?

@antomys
Copy link

antomys commented Jul 21, 2022

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
Copy link

antomys commented Jul 22, 2022

Quick update : Jil is still better at performance
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants