Is there a deserialization option to perform case-sensitive deserialization with Json.NET?
Suggest:
public class Account
{
public string Email { get; set; }
public bool Active { get; set; }
public DateTime CreatedDate { get; set; }
public IList<string> Roles { get; set; }
}
must fail, when deserialized from:
{
"email": "[email protected]",
"active": true,
"createdDate": "2013-01-20T00:00:00Z",
"roles": [
"User",
"Admin"
]
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…