Deserialize json string into object in c#
Hi,
I have a json string as follows
Var json content={"label":"abc","value":{"id":13,"street":"qwerty"}}
Convert this and assign into student class
Public class student
{
Public string label {get;set;}
Public address value{get;set;}
}
Public class address
{
public int id {get;set;}
Public string street {get;set;}
}


Sachin SinghRank #66 · 26.2K reputationPosted Oct 1, 2020, 7:44 AM EDT
Ajay GohilRank #2,370 · 599 reputationPosted Oct 1, 2020, 7:27 PM EDT
Asma KhalidRank #160 · 14.7K reputationPosted Oct 1, 2020, 9:57 PM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Oct 2, 2020, 12:14 AM EDT
Mageshwaran RRank #411 · 6.1K reputationPosted Oct 4, 2020, 4:42 AM EDT
Varun SetiaRank #308 · 8.2K reputationPosted Oct 2, 2020, 5:14 AM EDT