Serialize all the fields into one string.

def serialize(self):
        """Serialize all the fields into one string."""

        keys = self._all_keys()
        serdata = {}
        for fieldname, value in self._data.items():
            serdata[fieldname] = getattr(type(self), fieldname).python_to_cache(value)
        return json.dumps(serdata)