Added class for converting php file structure to json