department: [
{
branch: "branchName",
speciality: ["specialityName", "specialityName2"],
},
], storing this as an attribute
TL;DR
Developers want to store an array of objects as an attribute. They have a 'department' attribute with objects containing 'branch' and 'speciality' arrays. To store it as an attribute, wrap the department array within an object and save it.