def loads(self, s):
        """
        Load data from a string.

        :param s: input data
        :type s: str
        """
        io = six.StringIO()
        io.write(s)
        io.seek(0)
        self.load(io)
        self.validate()
def loads ( self , s ) : io = six . StringIO ( ) io . write ( s ) io . seek ( 0 ) self . load ( io ) self . validate ( )
Load data from a string.

        :param s: input data
        :type s: str