I have a class that contains an enum property, and upon serializing the object using JavaScriptSerializer, my json result contains the integer valu
enum
JavaScriptSerializer
Asp.Net Core 3 with System.Text.Json
public void ConfigureServices(IServiceCollection services) { services .AddControllers() .AddJsonOptions(options => options.JsonSerializerOptions.Converters.Add(new JsonStringEnumConverter()) ); //... }