According to JD that mower uses the 40N877-0001-B1 which uses the 592829 stator and 794360 regulator with the 5/9 amp regulated system
Make sure you are getting battery voltage to the wire that connects to the tractor harness side of the regulator and make sure the ground wire for the regulator is present and connected. Disconnect the single wire between the stator and the regulator and with the red lead of a meter connected to that lead and the black lead connected to engine ground you should have 28+ v AC for the 5 amp system or 40+ volts AC for the 9 amp system with the engine running full throttle. The amp output is determined by the flywheel magnets.