diff --git a/README.md b/README.md index d2825d2..93399e3 100644 --- a/README.md +++ b/README.md @@ -310,4 +310,12 @@ public class Startup } ``` +An alternative approach to integrate with AspNetCore is overriding the `ContractResolver`: +```csharp +public void ConfigureServices(IServiceCollection services) { + // ... + services.AddJsonOptions(x => x.SerializerSettings.ContractResolver = new JsonApiSerializerSettings().ContractResolver); +} +``` +