I have an object as below:
Organization:
{ Id : 1, Name : name, OrgType : { typeId : 1, name: tname }, employees : [{id:1, name:sm },{id:2, name:sm1 },{id:3, name:sm3 }]
so, here its complex object containing- Organization, OrgType and Employee list.
Problem, is I receive this collection from one service response and my application has different structure of object.
How can i deserialize above object to below structure:
Organization :
Id changed to OrgId
Name as Name,
OrgType object changed to Type object
Employees List object changed to EmpList object
In Type object - typeId changed to OtId, name changed to Name.
Employee object - id changed Id, name changed to EmployeeName
here, how to deserialize into above object where different property and also containing complex object.