The Black Cats didn’t see much of the ball, particularly in the second half, but took the lead five minutes from time when Luke O’Nien headed home Alex Pritchard’s in-swinging corner.
Sunderland added a second goal in stoppage-time when they were awarded a penalty and Aiden McGeady converted from the spot.
The result moves the Black Cats back into the play-off places, with games in hand on the sides above them, after a run of three consecutive league defeats.
Johnson’s side now face back-to-back away games at Shrewsbury and Cambridge but will take confidence after getting back to winning ways.
Our chief Sunderland writer Phil Smith has delivered his verdict on how each player fared 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. Luke O’Nien - 8
Moved back into a full back role and defended well, getting forward when he could and causing a threat. Snatched the win with his late header. Really underlined his squad value. 8 Photo: Frank Reid

6. Corry Evans - 5
Took an early yellow card for a late challenge on Edwards as he burst through the middle of the pitch. Had a really poor spell at the start of the second, ceding possession too easily, bit came through it. Replaced for the last 15. 5 Photo: JPI Media

7. Dan Neil - 6
Was at the heart of Sunderland’s good play, the centrepiece of some promising moves toward the end of the first half. The Black Cats didn’t use that enough, and he faded a touch in the second. Steady, though. 6 Photo: JPI Media

8. Lynden Gooch - 5
No doubting the application, regularly shuffling back to help his defender. On the ball it didn’t quite happen, despite getting into some promising areas. 5 Photo: JPI Media

