A port of NodaTime.Serialization.JsonNet to utilize Utf8Json instead
using DS.NodaTime.Serialization.Utf8Json;
using NodaTime;
using Utf8Json;
using Utf8Json.Resolvers;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
CompositeResolver.RegisterAndSetAsDefault(
new NodaTimeResolver(DateTimeZoneProviders.Tzdb, NameHandling.CamelCase, true, true, true),
StandardResolver.ExcludeNullCamelCase);
var json = JsonSerializer.ToJsonString(new LocalDate(2019, 1, 1);
}
}
}