title: Is there any way to rename js object keys using underscore.js
body: <p>I need to convert a js object to another object for passing onto a server post where the names of the keys differ for example</p>
  
  <pre><code>var a = {
      name : "Foo",
      amount: 55,
      reported : false,
      ...
      &lt;snip/&gt;
      ...
      date : "10/01/2001"
      } 
  </code></pre>
  
  <p>needs to turn into </p>
  
  <pre><code>a = {
    id : "Foo",
    total : 55,
    updated: false,
    ...
    &lt;snip/&gt;
    ... 
    issued : "10/01/2001"
    }
  </code></pre>
  
  <p>where I have lookup obj available for mapping all the keys</p>
  
  <pre><code>var serverKeyMap = {
      name : "id",
      amount : "total",
      reported : "updated",
       ...
      date : "issue"
      }
  </code></pre>
  
  <p>Is there a function available in underscore.js or jQuery that I can use that does this functionality? </p>
  
  <p>thanks</p>