title: JSON Serialize List<KeyValuePair<string, object>>
body: <p>I used a Dictionary in a Web API project, which is serializing like that in JSON:</p>
  
  <pre><code>{"keyname":{objectvalue},"keyname2:"....
  </code></pre>
  
  <p>Since I have duplicate keys I could't use Dictionary type any more, and instead now I'm using <code>List&lt;KeyValuePair&lt;string,object&gt;&gt;.</code></p>
  
  <p>But this is serializing that way:</p>
  
  <pre><code>[{"Key":"keyname","Value":"objectvalue"}...
  </code></pre>
  
  <p>Is there a way to have the <code>List&lt;KeyValuePair&gt;</code> serialize the same way a dictionary does?</p>
  
  <p>Thanks.</p>