I have multiple instances of JSON objects that have missing or updated information. I want a way to take all of the JSON objects and combine them into one record in C# (.net 3.5). If there is an existing field, I want the latest one saved.
for example, if I had all of these objects respectively:
{
"id" : 1,
"firstName" : "John",
}
{
"id" : 1,
"firstName" : "John",
"lastName" : "Dow",
"phone" : "555-555-5555"
}
{
"id" : 1,
"phone" : "(555) 555-555"
}
"id" : 1,
"position" : "Peon"
}
I would want a resulting object equal to:
{
"id" : 1,
"firstName" : "John",
"lastName" : "Dow",
"phone" : "(555) 555-555"
"position" : "Peon"
}
Thank you for any help!