When responding to my client, I have data in a JavaScript format. The table I am loading requires specific field names. Is there a way to map a key in the JSON to a field name in the JSON object?
This is my current approach:
this.resArray = Array;
this.results = new this.resArray(); // This object uses 'Phone' instead of 'phone'
var dataFromServerJSON = $.parseJSON(dataFromServer); // Data from server includes phone:3127789342
$.merge(app.Client.view.results, dataFromServerJSON)