Anyone can find/calculate what is the solution to the following sum?

\[
\sum_{n=0}^{\infty} J_n^2(x) \cos(ny)
\]