How is asp.net MVC serialized for a Json object for controller actions?
For example, I have a custom object, and if you send an ajax request with JSON objects to a server action
public ActionResult(List<CustomObject> abc) {
The reason why I ask about this is because some of my objects do not have proper serialization and therefore there is data loss, then I have to go back to the old string value method for serializaiton.
public ActionResult(string abc) { JavaScriptSerializer serializer = new JavaScriptSerializer(); List<CustomObject> lstabc = serializer.Deserialize<List<CustomObject>>(abc); }
Which I would like to avoid, and secondly, what are the best libraries for serializing JSON MVC Asp.net objects?
source share