I want to parse JSON string. Problem is with writing classes.how should i write classes like table structure or according to JSON string?
Format: JSON
Content:
{
success: 0,
message: “”,
token :””,
data:
{
"User":{
"UserID": 1212,
"UserEmail": "[email protected]",
"UserNameLast": "abc",
"UserNameFirst": "xyz",
"UserRoleID": 1,
"UserRole": "Sales Executive",
"UserPhone": "1212",
},
"Managers":[{
"UserID":1,
"UserEmail": "[email protected]",
"LastName": "qwe",
"FirstName": "qwe",
"UserRole": "Manager",
"UserPhone": "222222",
},
{
"UserID":2,
"UserEmail": "[email protected]",
"LastName": "eee",
"FirstName": "eee",
"UserRole": "General Manager",
"UserPhone": "33333",
}
]
}
}
Table structure is different than json string.