I have the following JavaScript structure:
obj = [
{
"patient_category_id":1,
"patient_category_alias":"He",
"patient_category_name":"Hello",
"translate_id":null,
"active":1
},
{
"patient_category_id":2,
"patient_category_alias":"Hi",
"patient_category_name":"Hilo",
"translate_id":null,
"active":1
}];
I want to remove translate_id and active, then insert created, like this:
obj = [
{
"patient_category_id":1,
"patient_category_alias":"He",
"patient_category_name":"Hello",
"created": 'xxxx'
},
{
"patient_category_id":2,
"patient_category_alias":"Hi",
"patient_category_name":"Hilo",
"created": 'xxxx'
}];