i have data in json
Code
{
"Shape": ["ROUND", "HEART"],
"LAP":["GIA"]
}i have to map in model class in c# as following
public class Clskeyvalue
{
public string key { get; set; }
public string value { get; set; }
}
how do i map please help.


Gajendra JangidRank #157 · 14.9K reputationPosted Apr 12, 2022, 3:05 AM EDT
Uttam KumarRank #1,076 · 1.8K reputationPosted Apr 12, 2022, 6:55 AM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Apr 12, 2022, 7:24 AM EDT
Asma KhalidRank #160 · 14.7K reputationPosted Apr 13, 2022, 1:53 AM EDT
Anoop Kumar SharmaRank #127 · 17.4K reputationPosted Apr 13, 2022, 5:47 AM EDT
Anandu G NathRank #681 · 3.5K reputationPosted Jan 24, 2024, 2:04 AM EST
public class JData
{
public List Shape { get; set; }
public List LAP { get; set; }
}
JData output = JsonConvert.DeserializeObject(stringJData);