It took me a while to find out that the model/DTO using public fields are not deserialized and model bound during a JSON post request. After changing the fields to properties the server everything works fine. Any reason for that? Pretty frustrating though.
Thanks.
lawdl9933
Member
6 Points
4 Posts
Model using public fields are not deserialized during post
Mar 16, 2012 02:53 PM|LINK
It took me a while to find out that the model/DTO using public fields are not deserialized and model bound during a JSON post request. After changing the fields to properties the server everything works fine. Any reason for that? Pretty frustrating though. Thanks.