in src/simplify_docx/elements/base.py [0:0]
def to_json(self,
doc, # pylint: disable=unused-argument
options: Dict[str, str],# pylint: disable=unused-argument
super_iter: Optional[Iterator] = None) -> Dict[str, Any]:# pylint: disable=unused-argument
"""
coerce an object to JSON
"""
out = {"TYPE": self.__type__}
if hasattr(self, "__props__"):
for key, prop in self.props.items():
if prop is None:
continue
out[key] = get_val(prop)
#return dict(self.props, **out)
return out