code: def json(self,attribs =None, recurse=True, ignorelist=False):
          
          if not attribs: attribs = {}
          if self.idref:
              attribs['id'] = self.idref
          return super(AbstractTextMarkup,self).json(attribs,recurse, ignorelist)
docs: See :meth:`AbstractElement.json`