How can I convert a string to an array of objects?
I am working with the following string
var s = "[{role:staff, storeId: 1234}, {role:admin, storeId: 4321}]";
and i want to be able to convert it to a .net object such as
public class StaffAccountObj
{
public string role { get; set; }
public string storeId { get; set; }
}
Is this possible?
JObjectorJsonConvert, unless you fix the source data - is that possible?