Parsing subscriber list to html table

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.

200,000 companies around the world can't be wrong.

From Australia to Zimbabwe, and everywhere in between, companies count on 
Campaign Monitor for email campaigns that drive real business results.

Get started for free