According to the title, I see that my read-only model properties are not serialized in my web API project. MVC 4 Web API, VS2010.
I saw a lot of posts, such as https://stackoverflow.com/a/168269/16732 , which states that the MVC 4 Web API beta strong> does not support read-only JSON serialization. But many sitelinks stated that the latest release uses JSON.NET instead of DataContractJsonSerializer, so the problem should be resolved.
Is this issue fixed or not? If not, am I forced to put fake setters to get serialization?
The correction it does seems to work with JSON (sorry!), But XML demonstrates this problem. Same question as before, but in the context of XML serialization.
source share