You might get the following message when trying to serialize a JSON response from a REST service with DataContractJsonSerializer : End element 'XXX' from namespace 'XXX' is expected. Found element 'XXX'
Post JSON objects with nested classes to MVC actionPost JSON objects with nested classes to MVC action
June 29, 2012June 29, 2012 0 Comment 02:25
Default view model binding of ASP.NET MVC has a disadvantage when using view models with nested classes and JSON objects. The binding is unable to recognize such nested classes and it initializes