Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions examples/c_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -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" :
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do an if...else here?

result[child_attr] = []

return result

Expand Down