(self)
return json.dumps([x.label for x in self.labels])
Returns a JSON encoded string with a list of the labels.

        Returns:
            A JSON encoded string with the list of labels.
Returns a JSON encoded string with a list of the labels.
Returns a JSON encoded string with a list of the labels .
def label_string(self):
        """Returns a JSON encoded string with a list of the labels.

        Returns:
            A JSON encoded string with the list of labels.
        """
        if not self.labels:
            return ''

        return json.dumps([x.label for x in self.labels])
def label_string ( self ) : if not self . labels : return '' return json . dumps ( [ x . label for x in self . labels ] )