C
C#2y ago
Sygmond

JsonSerializerSettings for ConfigurationBuilder

I have these settings in appsettings.json that IConfiguration can't bind/map them to my class correctly and I need to add a JSonSerializerSettings in order to be able to bind them.
{
"Bindings": [
{
"$type": "GrpcNativeBindingConfiguration",
"UseSsl": false,
"Name": "NativeBinding"
},
{
"$type": "GrpcWebBindingConfiguration",
"UseSsl": false,
"Name": "WebBinding"
}
]
}
{
"Bindings": [
{
"$type": "GrpcNativeBindingConfiguration",
"UseSsl": false,
"Name": "NativeBinding"
},
{
"$type": "GrpcWebBindingConfiguration",
"UseSsl": false,
"Name": "WebBinding"
}
]
}
How can I add a json serializing settings to configuration builder? I googled a lot and the only thing I found is this library: https://cachemanager.michaco.net/documentation/api/CacheManager.Core.JsonConfigurationBuilderExtensions.html
0 Replies
No replies yetBe the first to reply to this messageJoin