title: MVC 4 and JsonResult format
body: <p>have a problem with the result format of this code</p>
  
  <pre><code>public JsonResult getCategorias(int? id)
  {
    var res = from c in db.Categorias
    where (( id.HasValue &amp;&amp; c.CategoriaPadre == id.Value) || (!id.HasValue &amp;&amp; c.CategoriaPadre == null))
    select new { id = c.Id, label = c.Descripcion };
  
    return this.Json(res, JsonRequestBehavior.AllowGet);
  }
  </code></pre>
  
  <p>this return a <code>json</code>:</p>
  
  <p><code>[{"id":21,"label":"Marketing3"},{"id":22,"label":"Marketing4"}]</code></p>
  
  <p>But i need a <code>json</code> with this format:</p>
  
  <p><code>{"21":"Marketing3","22":"Marketing4"}</code></p>
  
  <p>What can i do?</p>
  
  <p>Thanks a lot and sorry my english.</p>