JSFiddle - React, Tailwind, and code Playground
JavaScript
var o = {
"ANI": "4693584648",
"Action Type": "IVR",
"Brand": "Alpha Max Boost",
"CSR Transfer": "No",
"Call Date": "05/03/2014",
"Call Status": "Complete",
"Call Time": "15:59:36",
"Customer ID": "114360",
"DNIS": "9257324175",
"First Name": "Isaac",
"ID": "342262",
"Last Name": "Torres",
"OCO Action": "Early Cancel Save Sale Accepted (38.71)",
"Order ID": "661438",
"Recognition Method": "Automatic",
"Status Group": "In Trial - Introduction (38.71)"
}
for (var k in o) {
if (k.replace(/\s/g, '') != k) {
o[k.replace(/\s/g, '')] = o[k];
delete o[k];
}
}
document.body.innerHTML = '<pre>' + JSON.stringify(o, null, 4) + '</pre>';