Jaime King had five miscarriages before giving birth to her son James Knight in October 2013.

The 'Hart Of Dixie' shared details of her struggles on Instagram in order to give hope to those having fertility troubles and revealed she also almost died from a severe ectopic pregnancy.

Jamie wrote on Instagram: ''For all the struggling women & moms out there that think they are alone - This is the truth about conceiving my son and struggles after. 8 yrs of pain and undiagnosed PCOS & Endometriosis.

''9 doctors until Dr. Randy Harris diagnosed me & saved my life from a severe ectopic, 5 miscarriages, 5 rounds of IVF, 26 IUI's, most with no outcome, 41/2 years of trying to conceive, 26 hours of brutal labor, early delivery b/c of sudden preeclampsia, tearing and tearing after the stitches were in once I was home, milk supply issues, painful mastitis, uncontrollable crying while breast feeding, worked until the day before I [gave] birth and went back after 6 weeks after because I was afraid of letting others down.''

And she added an inspirational message to those undergoing similar troubles.

Jaime - who is married to Kyle Newman - wrote: ''#youarenotalone #ihavetobebravetosupportothers'' and ''#realtalkthatterrifiesus'' .