Josh Johnson is retiring from baseball at age 32, according to his agent, Matt Sosnick.

Johnson, who underwent three Tommy John surgeries on his right elbow during his career, signed a minor league contract with the San Francisco Giants in early November.

The right-hander posted a career 58-45 record with a 3.40 ERA for the Miami Marlins and Toronto Blue Jays.