Does Newtonsoft.JSON library have a simple way I can automatically deserialize JSON into 2 different Models/classes?
For example I get the JSON:
[{
\"g
In your models, The name properties need to be strings, instead of integers. After correcting it.
You can use Tuple class
string json = @"[{'guardian_id':'1453','guardian_name':'Foo Bar','patient_id':'938','patient_name':'Foo Bar'}]";
var combination = new Tuple, List>(JsonConvert.DeserializeObject>(json), JsonConvert.DeserializeObject>(json));