title: How to create array of key/value pair in c#?
body: <p>I have an application that is written on top of ASP.NET MVC. In one of my controllers, I need to create an object in C# so when it is converted to JSON using <code>JsonConvert.SerializeObject()</code> the results looks like this</p>
  
  <pre><code>[
    {'one': 'Un'},
    {'two': 'Deux'},
    {'three': 'Trois'}
  ]
  </code></pre>
  
  <p>I tried to use <code>Dictionary&lt;string, string&gt;</code> like this</p>
  
  <pre><code>var opts = new Dictionary&lt;string, string&gt;();
  opts.Add("one", "Un");
  opts.Add("two", "Deux");
  opts.Add("three", "Trois");
  
  var json = JsonConvert.SerializeObject(opts);
  </code></pre>
  
  <p>However, the above creates the following json </p>
  
  <pre><code>{
    'one': 'Un',
    'two': 'Deux',
    'three': 'Trois'
  }
  </code></pre>
  
  <p>How can I create the object in a way so that <code>JsonConvert.SerializeObject()</code> generate the desired output?</p>