TORONTO (AP) — Andray Blatche scored 24 points, Joe Johnson had 21 and the Brooklyn Nets snapped a five-game losing streak, beating the Toronto Raptors 102-100 on Tuesday night.
Paul Pierce scored 16 points and Kevin Garnett had 12 as the Nets won for the first time since beating Phoenix on Nov. 15.
Brooklyn won for just the third time in their past nine games in Canada, getting the victory despite playing without guard Deron Williams and center Brook Lopez, both of whom are sidelined with left ankle injuries.
DeMar DeRozan scored 27 points and Kyle Lowry had 21 for the Raptors, whose two-game winning streak was snapped.
The Nets were up 101-86 with 5:22 left but nearly coughed up the lead. Rudy Gay's 3-pointer with 23 seconds left cut it to 101-100 before Shaun Livingston made 1 of 2 from the line with 11 seconds remaining, missing his second attempt.
After a Raptors timeout, Toronto's Amir Johnson missed a potential go-ahead 3-pointer from the corner with one second left, and Steve Novak was unable to tip in Johnson's rebound as the Nets held on.
The Nets were also without two top reserves, guard Jason Terry (left knee) and forward Andrei Kirilenko (back).
Livingston was cleared to play despite being elbowed in the head during Sunday's loss to Detroit.
Brooklyn was ahead 16-6 midway through the first but Toronto shot five for six from 3-point range to lead 28-26 after one. DeRozan, who made three 3-pointers, scored 13 points in the first.
Joe Johnson scored seven points in the second, while Garnett and Pierce each had five, as the Nets took a 55-51 lead at halftime.
Brooklyn opened the second half with a 10-4 run, taking a 65-55 lead, but DeRozan scored 11 in the third to keep Toronto close. Johnson had nine points for the Nets, who held an 81-76 lead heading into the fourth.
NOTES: Toronto's Quincy Acy (right ankle) missed his third straight game. ... Garnett played his 1,336th career game, moving him past Gary Payton into sole possession of ninth place in the NBA all-time. ... Canadian tennis star Milos Raonic attended the game.