unable to form structure as expectedoutput and need to update the flag to true,when name value from items matches to name from obj and update to false when it doesn\'t match