I\'m trying to properly write code to build a data structure to serialize into json.
I\'m using json.net.
I don\'t want to create a bunch of classes to hold
In the end I have used these Models.
public class JStudent
{
public List projects = new List();
public string name;
public string id;
}
public class JProject
{
public List tasks = new List();
public string name;
public string id;
}
public class JTask
{
public string name;
public string id;
}
It is now working perfectly. Is there any better way to do this?