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.
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.