Added functions creates JSON of teams