I have an action that gets a class with a dictionary in its properties:
public ActionResult TestAction(TestClass testClass) { return View(); } public class TestClass { public Dictionary<string, string> KeyValues { get; set; } }
If I make a message for my action with the following JSON:
{ "KeyValues": { "test.withDoT": "testWithDot" } }
The key in my dictionary is split into a dot and nothing matters.

Trying without using dots. How can I make a message with a dot in Dictionary<string, string> with MVC?
Alexandre Pepin
source share