docs: def to_json(self):
          """
          Returns:
               str: Json for commands array object and all of the commands inside the array."""
          commands = ",".join(map(lambda x: x.to_json(), self._commands))
          return "{\"commands\": [" + commands + "]}"