get_portfolios api results - pyhton

Hi Dev Community,

I am trying to create a porfolio report across my team of Program Managers (8 members). When I use the client.portfolios.get_portfolios() and I try to print the result i get <generator object PageIterator.items at 0x0000019D7F48EE40>.

How do I get the output in a JSON format ?

hi @Ken_Harrison
I am also trying it
@Ken_Harrison if you can find the solution to this plz dm me