in src/simplify_docx/elements/base.py [0:0]
def to_json(self,
doc,
options: Dict[str, str],
super_iter: Optional[Iterator] = None) -> Dict[str, Any]:
"""Coerce a container object to JSON
"""
out: Dict[str, Any] = super(container, self,).to_json(doc, options, super_iter)
out.update({
"TYPE": self.__type__,
"VALUE": [ elt.to_json(doc, options) for elt in self],
})
return out