json template for loop added