Measurement of the f0(1270) polarization in the J/ψ → f0γ decay