Skip to content

Using Jil with ASP.NET Core 6 #356

@davidkeaveny

Description

@davidkeaveny

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions