def get_data(self): data = { "data": DatasourceFactory.get_data(self.data) } print data return json.dumps(data, sort_keys=True, indent=4)