Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix None to 'null' when calling Topology.to_json(pretty=True) #150

Merged
merged 1 commit into from
Mar 29, 2022

Conversation

yizongk
Copy link
Contributor

@yizongk yizongk commented Mar 29, 2022

In current version, when you call Topology.to_json(pretty=True) on data with properties set to None, it will output None in the result. None is not valid JSON syntax, None should be replace with null

For more info, please look at this issue: #149

This PR includes a fix to that issue, and a test case for the test suite

@yizongk yizongk changed the title Fix None -> 'null' when calling Topology.to_json(pretty=True) Fix None to 'null' when calling Topology.to_json(pretty=True) Mar 29, 2022
@yizongk yizongk force-pushed the fix_none_to_json_with_pretty branch from 705e65c to 35c8ef6 Compare March 29, 2022 18:24
@mattijn mattijn merged commit 8a5a880 into mattijn:master Mar 29, 2022
@mattijn
Copy link
Owner

mattijn commented Mar 29, 2022

Thanks for the PR! Looks good👍

@yizongk yizongk deleted the fix_none_to_json_with_pretty branch March 29, 2022 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants