def list_organizations_json(self): resp = router.get_organizations() return resp.json()
def json(self): resp = router.get_organizations() org = [x for x in resp.json() if x['id'] == self.organizationId] if len(org)>0: return org[0] return resp.json()