I'm parsing a JSON data send from server to new JSON Object using JavaScript.JSON data from server will be in this format SERVER JSON:{  'serverFromDate': '15/07/1988',  'serverToDate': 123,  'hdnUserName' : 'User',  'hdnRole' :'Admin',  'hdncmbRoles':[{'text':'Admin', 'hdnvalue':'admin'},           {'text':'Client', 'hdnvalue':'client'}]}and I'm converting this JSON to below formatCLIENT JSON:{      'clientFromDate': '15/07/1988',      'clientToDate': 123,      'txtUserName' : 'User',      'txtRole' :'Admin',      'cmbRoles':[{'text':'Admin', 'value':'admin'},               {'text':'Client', 'value':'client'}]    }My Conversion Util is like this...I will check for every server key is present in the Server JSON, if it there then i will added it to the client JSON.var j_Utils = {  getValueOf: function(json) {    return function(key) {      return json[key];    }  },  hasKeyOf: function(json) {    return function(key) {      return json.hasOwnProperty(key);    }  }};function getMappedData(data) {  var jObj = {},    getValueOf = j_Utils.getValueOf(data).bind(j_Utils),    hasKeyOf = j_Utils.hasKeyOf(data).bind(j_Utils);  if (hasKeyOf('serverFromDate'))    jObj['clientFromDate'] = getValueOf('serverFromDate');  if (hasKeyOf('serverToDate'))    jObj['clientToDate'] = getValueOf('serverToDate');  //..........................................  // TOO MANY DATA OR MAY NOT HAVE ALL TIME  //..........................................  return jObj;};var clientData = getMappedData({  'serverFromDate': '15/07/1988',  'serverToDate': 123});console.table(clientData);Some time these data will be huge, so I'm supposed to write a lengthy javascript code which does the same operation from mapping one value to other. So I want to simplify this JavaScript code in a more efficient and simpler way. The keys from server and client are different (yeah there may be some prefix and suffix or some keys are entirely different), is there any possible ways to simplify these steps in ES6/ES5?
JSON data serialization
javascript;json;ecmascript 6