The Serbian committee said in its announcement that Djokovic had confirmed he will play in Paris. It will be his fifth Olympics.
The 37-year-old Djokovic had said surgery on his right knee “went well.”
The tennis events for the Paris Olympics start on July 27 at Roland Garros, the site of the French Open.
It was unclear if Djokovic will be ready to play at Wimbledon, where he has won seven of his 24 Grand Slam titles. That grass-court major begins on July 1.
Djokovic has only won a bronze medal at the Olympics.