title: Mapping JSON (jQuery) to KeyValuePair
body: <p>I have a JSON object with numerous properties that I am submitting to a C# web service via jQuery.ajax() - it looks something like this:</p>
  
  <pre class="lang-js prettyprint-override"><code>var obj = {};
  obj.LanguageCode = 1031;
  obj.Gender = { 'Geschlecht': 'Mann' };
  obj.City = { 'Stadt': 'Berlin' };
  ...
  </code></pre>
  
  <p>Some properties, like Gender and City, store a localized/translated prompt and response that I want to map to a KeyValuePair. I've tried formatting the Javascript in different ways, but the data only comes through when the datatype is Dictionary - when the datatype is KeyValuePair it doesn't work. For example:</p>
  
  <pre class="lang-cs prettyprint-override"><code>private Dictionary Gender { get; set; } // works: Gender[0] == {[Geschlecht,Mann]}
  private KeyValuePair City { get; set; } // doesn't work: City == {[,]}
  </code></pre>
  
  <p>I can use Dictionary if necessary since it works, but it seems like KeyValuePair is more appropriate and cleaner to use. Can you map Javascript objects to KeyValuePairs, or am I stuck with using Dictionary?</p>