After reading this it got me wondering if it is possible in a Net Core project (< v3) to swap out Json.Net and replace the JSON serializing and deserializing functionality with the ServiceStack
JsonSerializer? Unfortunately we could not write the entire API with ServiceStack at the time.
The reasons why I ask are:
- The way you have built your serializer and deserializers coercion of types is very good and beats every single other serializer I have ever worked with. Makes the developer’s lives a breeze as things “just work”.
- Performance is better than Json.Net.
- OrmLite uses the JsonSerializer and this layer works well and is trusted, would be good to see it on the web service layer as well.
Utf8Json provides a library called
Utf8Json.AspNetCoreMvcFormatter that can be used to swap out the default Json provider.
Some of my projects are going to be stuck for a while on older net core versions and by swapping in the ServiceStack library here could provide a nice boost.