just a quick question does anyone know what happens if i would have a JSON string that lets say has the attributes: name, age, gender. and i try to deserialize that to a User class that looks like:
public class User{
int age;
string name;
}
So obviously it doesn't have the gender in it. I'm using the JavaScriptSerializer.deserializeObject function to do it. does anyone know whether it would just skip it as if the json string didnt have the gender in it because it cant find the variable or would it throw an error?