PHP Serializer designed for use with Rest APIs