title: How to serialize array of object as JSON dictionary?
body: <p>I need to serialize an array of objects as JSON dictionary.</p>
  
  <p>Array item like this:</p>
  
  <pre class="lang-cs prettyprint-override"><code>class Entry {
      public string Id{get;set;}
      public string Value{get;set;}
  }
  </code></pre>
  
  <p>So array like </p>
  
  <pre><code>var arr = new[]
      {
          new Entry{Id = "one", Value = "First"},
          new Entry{Id = "two", Value = "Second"},
          new Entry{Id = "tri", Value = "Third"},
      };
  </code></pre>
  
  <p>I expect to be serialized as follows:</p>
  
  <pre><code>{
      one: {Title: "First"},
      two: {Title: "Second"},
      tri: {Title: "Third"}
  }
  </code></pre>
  
  <p>Is it possible? Something near ContractResolver?</p>
  
  <p>Thanks.</p>