code: def get(self, key, default=None):
          
          try:
              val = self
              if "." not in key:
                  return self[key]
              for k in key.split('.'):
                  if k.isdigit():
                      k = int(k)
                  val = val[k]
              return val
          except (TypeError, KeyError, IndexError) as e:
              return default
docs: Access data via
          :param key:
          :param default: the default value
          :return: