How to receive JSON as an MVC 5 action method parameter

Unfortunately, Dictionary has problems with Model Binding in MVC. Read the full story here. Instead, create a custom model binder to get the Dictionary as a parameter for the controller action. To solve your requirement, here is the working solution – First create your ViewModels in following way. PersonModel can have list of RoleModels. public … Read more