function remove_field(obj, prop) { var resObj = {}; for(var i in obj) { if (obj.hasOwnProperty(i) && i != prop) { resObj[i] = obj[i]; } } return resObj; }