Brooklyn Nets guard Joe Johnson shoots the go-ahead jumper over New York Knicks guard J.R. Smith with 22 seconds left in Monday’s game.

NEW YORK — Joe Johnson made the go-ahead jumper with 22 seconds left and scored 25 points, leading the Brooklyn Nets to an 88-85 over the New York Knicks on Monday and a split of the four-game series between the city rivals.

Deron Williams added 14 points and 12 assists for the Nets, who cut the Knicks’ Atlantic Division lead to one game. Brook Lopez had 14 points and 11 rebounds, and Kris Humphries came off the bench for 11 points and 13 boards.

Carmelo Anthony had 29 points and seven assists for the Knicks, but missed all six shots in the fourth quarter and finished 11 of 29 for the game. J.R. Smith scored 16 points and Amare Stoudemire 15.

The Nets survived a pair of lengthy droughts in the second half but got 10 points in the final period from Johnson, who used to play for Knicks coach Mike Woodson in Atlanta and has become the player Brooklyn turns to for big shots in the clutch.

PACERS 82, GRIZZLIES 81

MEMPHIS, Tenn. — George Hill scored 13 points, including a clinching free throw with 1.4 seconds remaining to give Indiana a victory over Memphis in the annual Martin Luther King Day game.

On the ensuing inbounds, Rudy Gay’s 24-footer over Paul George banked in, but it came after the buzzer — a ruling confirmed by officials after a review — giving the Pacers their second straight win and ninth in the past 11.

David West scored 14 points for the Central Division-leading Pacers, while George finished with 12 points, 10 rebounds and nine assists. Roy Hibbert scored 10 for Indiana.

ROCKETS 100, BOBCATS 94

CHARLOTTE, N.C. — James Harden scored 29 points and hit all 10 of his free throws in the fourth quarter and Houston rallied to snap a seven-game losing streak with a narrow victory.

Kemba Walker scored a career-high 35 points for the Bobcats, who set a franchise record with their 15th straight loss at home.

The longest home skid in NBA history is 19 straight games by Dallas during the 1993-94 season.

Harden made just 5 of 20 shots, but went 19 of 21 on free throws. He was perfect from the line when the Rockets overcame a seven-point deficit in the final period.

Marcus Morris had 21 points for the Rockets. Carlos Delfino scored 16, including a 3-pointer from the right corner that put Houston ahead for good at 96-94 with 1:54 left.

HORNETS 114, KINGS 105

NEW ORLEANS — Ryan Anderson scored 27 points and New Orleans survived a second half without Anthony Davis in a victory over Sacramento.

Greivis Vasquez added 19 points and Eric Gordon had 16 points for the Hornets, who have won three of four.

DeMarcus Cousins led the Kings with 29 points and 13 rebounds. Isaiah Thomas scored 20 points, and Tyreke Evans had 16 on the day the NBA announced the team’s owners had a deal to potentially move the franchise to Seattle.