Near-infrared photometry of globular clusters towards the Galactic bulge: observations and photometric metallicity indicators