You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does this library work with dot net core 2, as I always get null value for the parameter decorated with
the [ModelBinder(BinderType = typeof(JsonModelBinder))] controller action method.
I had created an empty project and then installed the library via Nuget.
The text was updated successfully, but these errors were encountered:
TheInsaneBro, Thanks a ton rechecked everything from the post and viola!! I can see the library in action now.
In ReadMe file, you have mentioned adding (.AddMvc().AddJsonOptions(...)) to startup.cs
It would be great if you can help me with an example for adding the config?
services.AddMvc().AddJsonOptions(options => options.SerializerSettings.Converters.Add(new StringEnumConverter())// And do other configurations for Newtonsofts JSON.Net);
Make sure to add the nuget package Microsoft.AspNetCore.Mvc.Formatters.Json (orMicrosoft.AspNetCore.All)
Could have probably made that more clear in the readme.
Hi,
I saw the reference to this library at a StackOverflow question.
Does this library work with dot net core 2, as I always get null value for the parameter decorated with
the
[ModelBinder(BinderType = typeof(JsonModelBinder))]
controller action method.I had created an empty project and then installed the library via Nuget.
The text was updated successfully, but these errors were encountered: