PHP implementation of the Collection+JSON