Lopez had 35 points and 11 rebounds on 13-of-20 shooting from the field to lead the Nets.
Kyrie Irving connected on a three-pointer to cut Brooklyn's lead to 101-100 with 5.9 seconds remaining in the game. After two free throws by Joe Johnson extended the Nets' lead to 103-100, Irving missed a three-pointer as time expired that would have sent the game into overtime.
Tyler Zeller had 12 points and seven rebounds in his sixth consecutive start for the Cavaliers since Anderson Varejao went down with a knee injury. Tristan Thompson had 17 points and 15 rebounds for his fifth double-double in the last six games.
Starting guards Kyrie Irving and Dion Waiters combined to shoot 7-of-24 from the field, but the Cavaliers shot 46.3 percent from the floor as a team. C.J. Miles was the lone bright spot for Cleveland's offense, as he scored a season-high 33 points on 11-of-15 shooting from the field, including 8-of-10 from three-point territory.