Provides convenience extension methods and configurable default settings for .Net Core's JsonSerializer
using Fetchgoods.Text.Json.Extensions;
// ...
class Animal
{
public string Species { get; set; }
public int Legs { get; set; }
public string Sound { get; set; }
}
string text = @"{""Species"": ""Cat"", ""Legs"": 4, ""Sound"": ""Meow!"" }";
var cat = text.FromJsonTo<Animal>();
// ...