I'm migrating my ASP.NET 1.1 project to 2.0:
Inside the Setup
class, under the Configure
method override I have:
services.AddMvc()
.AddJsonOptions(options =>
options.SerializerSettings.Converters.Add(new StringEnumConverter())
);
The AddJsonOptions
method is missing.
What happened to it? How can I get the same functionality?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…