An excellent strike from Dan Neil put the hosts ahead in the 15th minute but Stanley defender Michael Nottingham equalised before half-time.
Sunderland right-back Carl Winchester then scored the winning goal in the 58th minute after converting Aiden McGeady’s pass with a neat finish.
The hosts had chances to kill the game off but Ross Stewart and Elliot Embleton couldn’t secure a two-goal cushion.
Johnson’s side defended admirably, though, with new goalkeeper Throben Hoffman making his first start for the club between the sticks.
The results means the Black Cats are now two points clear at the top of the table.
Our Sunderland writer Phil Smith has delivered his verdict on how each player performed at the Stadium of Light:
A message from the Football Clubs Editor
Our aim is to provide you with the best, most up-to-date and most informative Sunderland AFC coverage 365 days a year.
This depth of coverage costs, so to help us maintain the high-quality reporting that you are used to, please consider taking out a subscription to our new sports-only package here.
Your support is much appreciated. Richard Mennear, Football Clubs Editor

9. Aiden McGeady - 7
Quiet in the first half, often pushed back by a good Accrington side. Better in the second, and showed his composure to pick out Winchester for the winner with an excellent pass that no one in the visiting defence was able to spot. 7 Photo: Frank Reid

10. Elliot Embleton - 7
Another impressive performance, regularly creating openings with his ability to spot a through ball. Unlucky not to register at least one assist. Should probably have scored when played through moments before he was withdrawn. 7 Photo: Frank Reid

11. Ross Stewart - 7
Ran the channels really well all game, constantly stretching the game. Not too many chances to get on the scoresheet himself and was denied well by Trafford from his only real opening. 7 Photo: JPI Media

12. Alex Pritchard (sub) - 6
Little chance to show his quality in the final third but played intelligently as Sunderland saw the game out well. 6 Photo: Frank Reid

