Learning to respect others is important.
Is the object: "to respect others" or "to respect"?
English Language Learners Stack Exchange is a question and answer site for speakers of other languages learning English. It only takes a minute to sign up.Sign up to join this community
Learning [to respect others] is important.
The bracketed element, an infinitival clause, is not object but complement of the catenative verb "learning".
Within the complement clause, the NP "others" is object of "respect".
There are no other objects.
Note that (with one minor exception) only NPs, not clauses, can be objects.