Hello I'm trying to add values to this complex object. I'm trying to turn this object into JSON using JSON.Net.
Dictionary<string, List<Dictionary<string, int>>> MyList
= new Dictionary<string, List<Dictionary<string, int>>>();
The end result should look something like this: {
"Documents": [
{
"Title": ,
"DatePublished": ,
"DocumentURL": ,
"ThumbnailURL": ,
"Abstract": ,
"Sector": "",
"Country": [
""
],
"Document Type": ""
}
I have tried this but didn't work:
MyList["Dictionary"][0].Add("test", 4);