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

5. Dennis Cirkin - 6
His best defensive performance to date, capped with one stunning block to deny Accrington Stanley an equaliser in the second half. Very steady. 6 Photo: Frank Reid

6. Luke O'Nien - 6
Energetic and battled well in midfield, covering a huge amount of ground. Just needs a little more composure in possession at times. 6 Photo: JPI Media

7. Dan Neil - 7
Got the goal his superb early form deserved. It was a stunner, too, leaving Trafford with no chance on his weaker foot. Another really strong performance. 7 Photo: JPI Media

8. Lynden Gooch - 6
A constant threat with his dribbling and driving runs into the channel. Just couldn’t find the end product to turn some promising openings into a goal. 6 Photo: Frank Reid

