John stracił nadzieje na syna.

English Translation

John hung his hopes on his son.

I believe this is incorrect as nadzieja should be in singular accusative form: nadzieję?

you’re right, the correct form is nadzieję