make json compression optional