Hi all,
I need one small help, I have below structure of json data I need to map to model class from response can anyone help me how
{
"data":[
{
"firstName":"",
"lastName":""
},
{
"firstName":"",
"lastName":""
}
] ,
"form":
{
"schema":[
{
"Id":101,
"Address":"Hyd"
},
{
"Id":101,
"Address":"Hyd"
}
]
}
}


Hiten PandyaRank #1,237 · 1.4K reputationPosted Sep 18, 2018, 8:01 PM EDT
You can use JObject class of Newtonsoft.Json.Linq namespace. Which helps you to read the values using key's. Parse your string into object of JObject and then use the key like,
Chandan Prasad174 reputationPosted Sep 18, 2018, 7:21 PM EDT
Rama KrishnaRank #3,366 · 427 reputationPosted Sep 19, 2018, 12:14 AM EDT
Hiten PandyaRank #1,237 · 1.4K reputationPosted Sep 19, 2018, 12:22 AM EDT
Glad that it helps you and thanks for accepting the answer. Yes, you are right I have to use jUser[0]["schema"] instead of jUser["schema"].
Thanks for the correction.