Jackson was admitted to Wellington Hospital on January 26 with acute stomach pains, reports stuff.co.nz.
According to his spokeswoman, the surgery had gone well and Jackson was expected to make a full recovery.
The Hobbit director wanted to express his thanks to the doctors and nursing staff at Wellington Hospital for their expert care "and to all those members of the public who sent their warm wishes," she added.
Any delays to filming The Hobbit were expected to be minimal. (ANI)