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

Using Jil with ASP.NET Core 6 #356

Open
davidkeaveny opened this issue Apr 24, 2023 · 1 comment
Open

Using Jil with ASP.NET Core 6 #356

davidkeaveny opened this issue Apr 24, 2023 · 1 comment

Comments

@davidkeaveny
Copy link

Has anyone had any success in using Jil as the primary JSON formatter in ASP.NET Core 6? There are plenty of examples of how to switch between JSON.NET and System.Text, but I haven't seen anything about how to swap in another library.

I am working on an API where the requests can get pretty large - 20MB, and JSON.NET is currently taking so long to deserialise those requests that the load balancer is timing out the connection; and we're looking to handle larger and larger payloads as we go on. From what I've been able to benchmark, Jil looks like it should be able to process my data in half the time that JSON.NET does, and with fewer demands on the resources of my containers.

@Mutuduxf
Copy link

I have finished a simple Jil Formatters for Asp.net Core; feel free to try it: https://github.com/PicoHex/Zaaby/blob/master/src/Server/Formatters/Zaaby.AspNetCore.Formatters.Jil/README.md

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