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
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