PHP classes to process Json feed within Joomla