fixed json creation and parsing issue for teams