I have following JSON and I want to deserialize using class. I have read few reference but it doesn't work in this case.
I want to create class which can deserialize following JSON and work fine. Can anybody please suggest me?
JSON:
{
"panels":{
"LBL_EDITVIEW_PANEL1":{
"lable_value":"New Panel 1",
"rows":[
[
{
"name":"subject",
"label_value":"Subject",
"label":"subject",
"type":"String",
"required":"true",
"CanBeSecuredForCreate":"false",
"CanBeSecuredForRead":"false",
"CanBeSecuredForUpdate":"false"
},
{
"name":"scheduledstart",
"label_value":"Start Time",
"label":"scheduledstart",
"type":"DateTime",
"required":"true",
"CanBeSecuredForCreate":"false",
"CanBeSecuredForRead":"false",
"CanBeSecuredForUpdate":"false"
}
]
]
}
}
}
If there are 3 panels, above JSON has LBL_EDITVIEW_PANEL1
, LBL_EDITVIEW_PANEL2
, LBL_EDITVIEW_PANEL3
. It makes really complications.
I am asking how to do it programmatically.