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 PandyaPosted Sep 19, 2018, 12:01 AM
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,
Hiten PandyaPosted Sep 19, 2018, 4:22 AM
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.
Rama KrishnaPosted Sep 19, 2018, 4:14 AM
Chandan PrasadPosted Sep 18, 2018, 11:21 PM