let obj = {
id: '01',
name: 'XXX',
Roles: [
{
time: null,
roleName: '',
roleId: '',
roleCode: '',
userName: '',
userId: '',
userCode: '',
Users: [
{
time: null,
userName: '',
userCode: '',
userId: '',
},
{
time: null,
userName: '',
userCode: '',
userId: '',
}
]
},
{
time: null,
roleName: '',
roleId: '',
roleCode: '',
userName: '',
userId: '',
userCode: '',
Users: [
{
time: null,
userName: '',
userCode: '',
userId: '',
},
{
time: null,
userName: '',
userCode: '',
userId: '',
},
{
time: null,
userName: '',
userCode: '',
userId: '',
}
]
}
]
}
console