title: Rename JSON key in javascript
body: <p>hello friends i want to rename my JSON key so below i my code</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code> var json = '[{"Status":"Success","Data":[{"UserID":null,"UserName":null,"EmailID":null,"EmailIDExists":false,"Active":null,"Country":null,"WishListID":"31","WishListName":"General","WishListItems":[{"WishListItemID":"3","ItemCode":"4414082000005","ItemName":"Notebook 4414-082","Image":"http://aljeel.gct.om/ProductsImages/4414082000005_MT1.jpg","ItemPrice":0.500,"CreatedDate":"25/05/2018"}]},{"UserID":null,"UserName":null,"EmailID":null,"EmailIDExists":false,"Active":null,"Country":null,"WishListID":"24","WishListName":"Default","WishListItems":[]}],"Message":null}]';
  
  var obj = JSON.parse(json)[0].Data;
  obj.data = obj.WishListItems;
  delete obj.WishListItems;
  
  json = JSON.stringify([obj]);
  console.log("FINAL JSON " + (json));</code></pre>
  </div>
  </div>
  </p>
  
  <p>i want to change <strong>WatchListItem</strong> key with <strong>data</strong> key but when i run above code JSON key is not replacing any idea how can i solve this? </p>