I need the data back from the server will be with "data" property, and what JsonConvert.SerializeObject()
return is without. How can I convert it?
From:
{
"name": "Tiger Nixon",
"position": "System Architect",
"salary": "$320,800",
"start_date": "2011/04/25",
"office": "Edinburgh",
"extn": "5421"
}
To:
{
"data": [{
"name": "Tiger Nixon",
"position": "System Architect",
"salary": "$320,800",
"start_date": "2011/04/25",
"office": "Edinburgh",
"extn": "5421"
}]
}
In VB.net (can be in C# too and I will convert).