title: Wrong output in json file from Dictionary<string, int> C#
body: <p>I am trying to write a dictionary to json file from C#, but the output is wrong, here is my method</p>
  <pre><code>public static List&lt;Dictionary&lt;string, int&gt;&gt; CreateGlobalVectorAndRareVectors(List&lt;Article&gt; articleList)
          {
              List&lt;Dictionary&lt;string, int&gt;&gt; vectoriRari = new List&lt;Dictionary&lt;string, int&gt;&gt;();
  
  
              int i = 0;
              foreach (Article art in articleList)
              {
                  
                  Dictionary&lt;string, int&gt; aux = new Dictionary&lt;string, int&gt;();
                  string[] title = art.Title1.Split(delimiterChars);
                  string[] text = art.Text1.Split(delimiterChars);
                  string[] completeText = title.Concat(text).ToArray();
                  completeText = completeText.Where(x =&gt; !string.IsNullOrEmpty(x)).ToArray();
  
                  foreach (var word in completeText)
                  {
                      if (!aux.ContainsKey(word))
                      {
                          aux.Add(word, 1);
                      }
                      else
                      {
                          aux.TryGetValue(word, out int tempValue);
                          aux[word] = tempValue + 1;
                      }
                  }
                  string json = JsonConvert.SerializeObject(aux);
                  using (StreamWriter sw = File.CreateText(@&quot;.\..\..\..\OutputData\&quot; + art.FileNames[i] + &quot;.json&quot;))
                  {
                      JsonSerializer serializer = new JsonSerializer();
                      serializer.Serialize(sw, json);
                  }
  
                  i++;
  
                  vectoriRari.Add(aux);
              }
  
  
              return vectoriRari;
          }
  </code></pre>
  <p>Here is the output I want to get</p>
  <pre><code>{
      &quot;USA&quot;: 1,
      &quot;Microsoft&quot;: 1,
      &quot;sees&quot;: 1
  }
  </code></pre>
  <p>And this is the output I get</p>
  <pre><code>{
      \&quot;USA\&quot;: 1,
      \&quot;Microsoft\&quot;: 1,
      \&quot;sees\&quot;: 1
  }
  
  </code></pre>
  <p>The question is how do I get rid of \ ? I am using the Newtonsoft.Json library for formating the json files.</p>