diff --git a/examples/c_json.py b/examples/c_json.py index 7eafdc58..cab05e42 100644 --- a/examples/c_json.py +++ b/examples/c_json.py @@ -116,6 +116,8 @@ def to_dict(node): for child_attr in child_attrs_of(klass): if child_attr not in result: result[child_attr] = None + if result['_nodetype'] == "Case" : + result[child_attr] = [] return result