Observational signatures of Jordan–Brans–Dicke theories of gravity