JACKSONVILLE, Fla. -

A 26-year-old Jacksonville man pleaded guilty Wednesday afternoon to attacking and stabbing his grandfather.

The plea by Alfred Johnson was entered just minutes before his trial was set to begin. Johnson pleaded guilty to charges of attempted murder in the second degree with a weapon, grand theft auto, and fleeing or attempting to elude a law enforcement officer. He also pleaded guilty to charges in an unrelated case -- possession of a firearm by a convicted felon and grand theft auto.

In June, Johnson, who was staying with his grandparents, attacked his grandfather, Reginald Adams, after Adams asked him to carry jugs of water from the car into the house. While Adams was in his kitchen, Johnson blindsided him, pulled out a butcher knife and stabbed his grandfather in the face, arm and abdomen.

Johnson then stole his grandfather's car and left the area. When police found Johnson driving the stolen vehicle, Johnson fled for about two miles before officers were able to stop him and take him into custody.

"It's a shame that someone can do that to a person who opened their house to him and was trying to help him," said Assistant State Attorney David Thompson. "I'm glad that he took some responsibility for what he did and did not make his grandmother and grandfather take the stand against him."

Johnson is a habitual felony offender with a 2003 carjacking conviction and a 2006 grand theft auto conviction. Both crimes happened in Duval County.

Johnson is also a prison release re-offender having committed the attempted murder within three years of being released from a Maryland prison on a 2009 car theft conviction. He faces life in prison when he's sentenced the week of Jan. 22.