title: Getting Collection text while serializing List<string> inside a Dictionary using JsonConvert in C#
body: <p>So I have the following data structure defined in my program:</p>
  <pre><code>Dictionary&lt;string, Dictionary&lt;List&lt;string&gt;, int&gt;&gt; myTopDict = new Dictionary&lt;string, Dictionary&lt;List&lt;string&gt;, int&gt;&gt;();
  
  Dictionary&lt;List&lt;string&gt;, int&gt; myInnerDict = new Dictionary&lt;List&lt;string&gt;, int&gt;();
  
  int myIntValue=1;
  
  List&lt;string&gt; myListValue=new List&lt;string&gt;();
  myListValue.Add(&quot;Example Text 1&quot;);
  myListValue.Add(&quot;Example Text 2&quot;);
  
  //Here I add to my inner dictionary
  myInnerDict.Add(myListValue, myIntValue);
  
  //And finally adding to top dictionary
  myTopDict.Add(&quot;My Data Set&quot;, myInnerDict);
  
  //Serialize here
  string result = JsonConvert.SerializeObject(myTopDict);
  </code></pre>
  <p>When I serialize the data structure, I am getting Collection text in the string as shown below:</p>
  <p><a href="https://i.stack.imgur.com/fO6nT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fO6nT.png" alt="enter image description here" /></a></p>
  <p>What am I doing wrong here? Why I am not able to see my data in the serialized result?</p>