def _encode(self):
obj = {k: v for k, v in self.__dict__.items()<EOL>if not k.startswith('<STR_LIT:_>') and type(v) in SAFE_TYPES}<EOL>obj.update({k: v._encode() for k, v in self.__dict__.items()<EOL>if isinstance(v, Ent)})<EOL>return obj<EOL>
Generate a recursive JSON representation of the ent.