I have a data packet in following JSON format.
[{"C74": "123"}, {"C75": "32"}, {"C76": "11"}, {"C78": "15"}]
Is it possible to parse in following C# model?
{
string key { get; set; }
string value { get; set; }
}
I have a data packet in following JSON format.
[{"C74": "123"}, {"C75": "32"}, {"C76": "11"}, {"C78": "15"}]
Is it possible to parse in following C# model?
{
string key { get; set; }
string value { get; set; }
}
2
Answers
your string is not a
Dictionary
it’s aDictionary[]
So you have to deserialize it that way and convert it into your desired format.
Yes, you can parse it to a List, for example