I have a List of class objects that have email address and status data members. I am trying to convert these to a json, making sure to have the \"operations\" word on the ar
class MyClass
{
public string email_address { get; set; }
public string status { get; set; }
}
List data = new List() { new MyClass() { email_address = "email1@email.com", status = "good2go" }, new MyClass() { email_address = "email2@email.com", status = "good2go" } };
//Serialize
var json = JsonConvert.SerializeObject(data);
//Deserialize
var jsonToList = JsonConvert.DeserializeObject>(json);