title: Merging two json objects in Java script?
body: <p>Have u merged two jsons in javascript ??</p>
  
  <p>Problem:</p>
  
  <pre><code>a={id:123,name:john,status:success};
  b={id:123,status:inprocess,transId:245};
  </code></pre>
  
  <p>Output json should be like  </p>
  
  <pre><code>{id:123,name:john,status:success,transId:245};
  </code></pre>
  
  <p>All the values from a should override the ones in b and also the uncommon key/values should appear in output json.</p>
  
  <p>I tried out some recursive options but cudnt acheive the output.</p>