arivera12 / BlazorHistory

HTML5 History API Implementation for Blazor without any JavaScript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consider switching from Newtonsoft.Json to System.Text.Json

nikonthethird opened this issue · comments

System.Text.Json is included in Blazor because it is a dependency of Microsoft.AspNetCore.Components.WebAssembly. Specifically Microsoft.Extensions.Configuration.Json.

This would remove the extra Newtonsoft.Json dependency at basically no cost.

System.Text.Json is feature less compared to Newtonsoft.Json, take a look of all the things that aren't not supported yet by System.Text.Json.

https://docs.microsoft.com/en-us/dotnet/standard/serialization/system-text-json-migrate-from-newtonsoft-how-to

I don't think I would work on this since it would be a waste of time not giving support to some built-in .net datatypes that are not even supported already by System.Text.Json.

I will keep sticked to Newtonsoft.Json until Microsoft supports everything that is already supported by Newtonsoft.Json.