changed json msg array and added empty check

Changed json message array. Added empty check for GetAllTeams