Skip to content

Commit

Permalink
Refactor Json5SkipEmptyLoader to handle merging empty objects more ef…
Browse files Browse the repository at this point in the history
…ficiently
  • Loading branch information
grongierisc committed Sep 18, 2024
1 parent 421da06 commit 72e0acb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fhir_converter/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ def json_object_to_python(self, node):
elif isinstance(d[key], dict):
merge_dict(d[key], value)
else:
d[key] = [d[key], value]
if value:
d[key] = value
else:
d[key] = value
if self.env.object_pairs_hook:
Expand Down

0 comments on commit 72e0acb

Please sign in to comment.