The mid-infrared spectral characteristics of blazars