mordred/_base/descriptor.py
def to_json(self):
        """Convert to json serializable dictionary.

        Returns:
            dict: dictionary of descriptor

        """
        d, ps = self._to_json()
        if len(ps) == 0:
            return {"name": d}
        else:
            return {"name": d, "args": ps}
def to_json(self):
        d, ps = self._to_json()
        if len(ps) == 0:
            return {"name": d}
        else:
            return {"name": d, "args": ps}
def to_json ( self ) : d , ps = self . _to_json ( ) if len ( ps ) == 0 : return { "name" : d } else : return { "name" : d , "args" : ps }
Convert to json serializable dictionary.

        Returns:
            dict: dictionary of descriptor
Convert to json serializable dictionary .