Posted on: 7/1/2015 2:39:55 PM | Views : 753

I have an issue where my Majors object is not serializing correctly to JSON. It needs to look like this, a string array:
"academics": { "majors": [ “BS”, “MS”…etc ]} Instead it looks like this
"academics": { "majors": [ {"Major":"BS"}, {“Major”:”MS”} ]} Here is what I have so far:
public class Student { public string StudentId { get; set; } public string Gender { get; set; } public Academics academics { get; set; } } public class Academics { public List<Majors> majors { get; set; } } public class Majors { public ...

Go to the complete details ...