docs: def respond(self, data, format='json'):
          """
          Converts a json object to a python datastructure based on
          specified format
  
          :param data: the json object
          :param format: python datastructure type. Defaults to: "json"
          :returns: a python specified object
          """
          dispatchers = {
              "dict": self.__respond_with_dict,
              "list": self.__respond_with_list
          }
  
          if not dispatchers.get(format, False):
              return json.dumps(data)
  
          return dispatchers[format](data)