This is a question taken from p.95 of Hartley and Hawkes: Rings, modules and Linear Algebra.
Firstly is the question correct or should it read $J \cong K$? This would seem more natural to me.
Assuming the question is correct then one of the directions is trivial so here's my attempt at the other direction.
If $R/J \cong R/K$ then there exists homomorphisms $\psi, \phi$ mapping $R \to N$ with $\ker(\psi) = J$ and $\ker(\phi) = K$ then $\text{im}(\psi) \cong \text{im}(\phi)$. Then I would have to show some how that this implies $J = K$.
I cannot even show that it implies $J \cong K$.
Many thanks