def METHOD_NAME(self):
    for node in self._iterate_selected_nodes():
        yield json.dumps(
            {
                k: v
                for k, v in node.to_dict(omit_none=False).items()
                if (
                    k in self.args.output_keys
                    if self.args.output_keys
                    else k in self.ALLOWED_KEYS
                )
            }
        )