title: Make ASP.NET WCF convert dictionary to JSON, omitting "Key" & "Value" tags
body: <p>Here's my dilemma.  I'm using a RESTful ASP.NET service, trying to get a function to return a JSON string in this format:</p>
  
  <pre><code>{"Test1Key":"Test1Value","Test2Key":"Test2Value","Test3Key":"Test3Value"}
  </code></pre>
  
  <p>But I'm getting it in this format instead:</p>
  
  <pre><code>[{"Key":"Test1Key","Value":"Test1Value"},
  {"Key":"Test2Key","Value":"Test2Value"},
  {"Key":"Test3Key","Value":"Test3Value"}]
  </code></pre>
  
  <p>My method looks like this:</p>
  
  <pre><code>[OperationContract]
  [WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.WrappedRequest, RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
  public Dictionary&lt;string, string&gt; Test(String Token)
  {
      if (!IsAuthorized(Token))
          return null;
  
      if (!IsSecure(HttpContext.Current))
          return null;
  
      Dictionary&lt;string, string&gt; testresults = new Dictionary&lt;string, string&gt;();
      testresults.Add("Test1Key", "Test1Value");
      testresults.Add("Test2Key", "Test2Value");
      testresults.Add("Test3Key", "Test3Value");
      return testresults;
  }
  </code></pre>
  
  <p>Is there any way I can get rid of those "Key" and "Value" tags using only built in ASP.NET tools?  (i.e., I'd rather not use JSON.NET, if it's avoidable)</p>
  
  <p>Thanks very much!  :)</p>