I am using System.Text.Json to write my list of objects to json file. Getting below exception while calling JsonSerializer.Serialize
System.TypeInitializationException: \