I'm deserializing a json that has two segments for two types. One is an object (.Net object in the client application) and the other is a list of objects. So do I just grab the data from the JObject as a JToken and convert it into the type of .NET object I want? and how would I do that?
Currently I'm trying to do something like this:
JObject recipePageObject = JObject.Parse(await resp.Content.ReadAsStringAsync());
JToken recipeToken = recipePageObject["Recipe"]["data"].Children().
But I'm stuck on how to translate it into a C# object.
My JSON string is in the format:
[
{
"Recipe": {
"data": [
{
fields
}
],
},
"Ingredients": {
"data": [
{
fields
}
]
}
]