Yes. That would work.
delete tenants['first']['expired'];
or delete tenants.first.expired;
.
If you are deleting it only because you wanted to exclude it from JSON.stringify()
, you can also just set it to undefined
, like tenants['first']['expired'] = undefined;