James scored eight points in OT, including two free throws that clinched it with 1.5 seconds remaining. Dwayne Wade, who had 21 points, had a dunk with 6.2 seconds to go to give Miami a four-point lead.
Arron Afflalo scored 28 for the Magic and J.J. Redick added 23, but he committed the turnover that led to Wade's decisive dunk. Nikola Vucevic had 20 points and set a team record with 29 rebounds as Orlando lost its sixth straight. The previous record was 28 rebounds by Shaquille O'Neal in 1993.
James scored on a driving layup with 1:07 left in the extra period to give Miami a 108-106 lead. He missed a shot from the top of the key, giving Orlando a chance to tie, but Shane Battier stole a cross-court pass from Redick and fed Wade for his late slam.
Josh McRoberts cut it to two with two seconds to play, but James sealed it at the line.
BOBCATS 91, BULLS 81
CHICAGO -- Kemba Walker had 18 points and eight rebounds to help Charlotte end an 18-game losing streak with a win over Chicago.
Charlotte fended off several rallies by the Bulls, who never held a lead, to win for the first time since Nov. 24.
THUNDER 114, SUNS 96
Oklahoma City extended its home winning streak to 12 games -- the longest in the NBA this season -- and won on New Year's Eve for the fifth straight year since the franchise moved from Seattle. The Thunder closed 2012 by winning 15 of their last 17 games.
Luis Scola scored 24 points to lead the Suns, who dropped their sixth straight game overall and seventh consecutive meeting against the Thunder. The Suns haven't beaten Oklahoma City since December 19, 2010.
SPURS 104, NETS 73
MarShon Brooks had a season-high 16 points to lead Brooklyn (16-15), which suffered its first loss under interim head coach P.J. Carlesimo. Joe Johnson added 12 points and Brook Lopez had 11, but Deron Williams was held to eight points and one assist.
San Antonio set a franchise low for fewest points by an opponent in a quarter.
PACERS 88, GRIZZLIES 83
INDIANAPOLIS -- Paul George had 21 points, six rebounds and five assists to lead Indiana to a win over Memphis.
DJ Augustin had 17 points and six assists, and David West had 13 points and nine rebounds for the Pacers, who have won five of their last six games.
West scored the go ahead three throws with 6:09 to play to give the Pacers a 72-71 lead after they trailed by as much as 10 in the second half.
ROCKETS 123, HAWKS 104
HOUSTON -- James Harden had 28 points and Houston rebounded from its worst loss of the season with a win over Atlanta.
The Rockets were coming off a 30-point defeat by Oklahoma City and had allowed at least 120 points in their last two games -- both losses. They used a 16-0 run in the second quarter to build a big lead and hold on for the win.
Lou Williams had 21 points for the Hawks, whose winning streak ended at four games.
Houston was up by 15 points in the fourth quarter before Atlanta used a 12-2 run to cut the lead to 102-97 with about five minutes remaining. The Rockets answered with an 8-0 run to regain control.
Copyright 2012 by The Associated Press
This story is from ESPN.com's automated news wire. Wire index