KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a flattened JSON: { "CaseName" : "John Doe v. State", "CaseDate" : "<some date>", "Client.FirstName" : "John", "Client.LastName" : "Doe", "Client.Email" : "johndoe@gmail.com" etc... } I want to deserialize it back to this entity: public class Case() { public string CaseName { get; set; } public string CaseDate { get; set; } public Client Client { get; set; } } where Client.FirstName , Client.LastName , and Client.Email are properties in the Client object. Using Json.NET, is there any way to get it to parse the dot notation and deserialize this entity correctly? Currently, using the default settings, it tells me that Client.FirstName is not a property in type Case .
Tags (comma-separated)
Save Edits
Cancel