Add the chaining feature for arrays and object in frontend