title: JSON to JSON transformer
body: <p>I got a scenario.</p>
  
  <p>Required input and output are JSON.</p>
  
  <pre class="lang-javascript prettyprint-override"><code>// Input
  {
    "OldObject": {
      "Time": 1351160457922,
      "Name": "OName",
      "quantity": 100,
      "price": 10
    }
  }
  
  
  // Output
  {
    "NewObject": {
      "Time": 1351160457922,
      "Title": "OName",
      "quantity": 100
    }
  }
  </code></pre>
  
  <p>I need some transformation code or preferably xslt type language to transform json from one format to another. This transformer also need to be fast as transformation will be done on the fly.
  <br/>
  <br/>
  <strong>Edit</strong><br/>
  I don't have the definition of the INPUT object received and it might change at run time. but I can use class for OUTPUT object if needed.
  I have tried to do this as <strong>json -> xml -> xslt -> xml -> json</strong>, but approximately 1000 objects are received per second at this end and this process might incur overhead.<br/>
  I can not also use JavaScript as myApp is simple <strong>windows based java application</strong> and using JavaScript might cause overhead. </p>