John finally starts to fight his tendency to repress his emotions when he realizes how unworthy of love Sherlock feels. It's a long road for both of them, but eventually John learns that it's not necessary to bottle up his feelings all the time, and Sherlock accepts that he's loved.
John learns to open up about his emotion