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.

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free
1-888-533-8098