Parsing subscriber list to html table

Hello,
PHP
I need a table, which will contain the subscribers from specific list or a segment.
Table needs to have all the custom fields (as columns). Some of our subscribers have a value in custom fields and some dont.

I managed to display a json from api sample (get_active_subscribers.php), but cant really do anything further with that, my tries fail.

Can anybody point me in the right direction? My google searching is not specific enough and the results are unclear mess.

See why 200,000 companies worldwide love Campaign Monitor.

From Australia to Zimbabwe, and everywhere in between, companies count on Campaign Monitor for email campaigns that boost the bottom line.

Get started for free