code: def getJsonData(self, params):
          
          try:
              return eval("self." + str(params['output_id']) + "(params)")
          except AttributeError:
              df = self.getData(params)
              if df is None:
                  return None
              return df.to_dict(orient='records')
docs: turns the DataFrame returned by getData into a dictionary
  
          arguments:
          the params passed used for table or d3 outputs are forwarded on to getData