Here is the object I am working with:
var arr = {
{"id":{"id":"1059","department_id":4476,"location_id":42}},
{"id":"1060","department_id":75,"location_id":42}},
{"id":"178","department_id":75,"location_id":42}
};
I am looking to wrap this object in a parent object like so:
var new_arr =
employees: {[
{"id":{"id":"1059","department_id":4476,"location_id":42}},
{"id":"1060","department_id":75,"location_id":42}},
{"id":"178","department_id":75,"location_id":42}
]};
If anyone has any ideas on how I can achieve this, please share!