DataContractJsonSerializer ReadObject Exception
- by Dan Appleyard
I am following the accepted answer of ASP.NET MVC How to pass JSON object from View to Controller as Parameter. Like the original question, I have a simple POCO.
Everthing works fine for me up until the DataContractJsonSerializer.ReadObject method. I am getting the following exception:
Expecting element 'root' from
namespace ''..…