A search for the decays of the Higgs and Z bosons to J/ψγ and ϒ(nS)γ (n=1,2,3) is performed with pp collision data samples corresponding to integrated luminosities of up to 20.3 fb^{-1} collected at sqrt[s]=8 TeV with ...