title: ASP.NET MVC Core API Serialize Enums to String
body: <p>How to serialize Enum fields to String instead of an Int in ASP.NET MVC Core 3.0? I'm not able to do it the old way. </p>
  
  <pre><code>services.AddMvc().AddJsonOptions(opts =&gt;
  {
      opts.JsonSerializerOptions.Converters.Add(new StringEnumConverter());
  })
  </code></pre>
  
  <p>I'm getting an error:</p>
  
  <blockquote>
    <p>cannot convert from 'Newtonsoft.Json.Converters.StringEnumConverter'
    to 'System.Text.Json.Serialization.JsonConverter'</p>
  </blockquote>