def to_json ( self ) -> Mapping : return { str ( x ) : str ( y ) for x , y in self . items ( ) }
jquery serialize to python dict
Return the properties of this : class : Sample as JSON serializable .
def to_json(self) -> Mapping:
        """Return the properties of this :class:`Sample` as JSON serializable.

        """
        return {str(x): str(y) for x, y in self.items()}