Skip to content

cleanup JSON conversion for all data types#164

Open
kyleclo wants to merge 2 commits into
kylel/2022-10/relationfrom
kylel/2022-10/make-json-serialization-consistent
Open

cleanup JSON conversion for all data types#164
kyleclo wants to merge 2 commits into
kylel/2022-10/relationfrom
kylel/2022-10/make-json-serialization-consistent

Conversation

@kyleclo

@kyleclo kyleclo commented Oct 14, 2022

Copy link
Copy Markdown
Contributor

Noticed JSON serialization had inconsistent behavior across various data types, especially in cases where certain fields were empty or None.

This PR adds a set of comprehensive tests in tests/test_types/test_json_conversion.py that documents these behaviors. PR also includes resolving inconsistencies. For example, now Metadata that's attached to a SpanGroup or BoxGroup won't get accidentally serialized as an empty dictionary.

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.

3 participants