Skip to content

Commit 99f6ff4

Browse files
committed
exclude none values when serializing
1 parent 4ed6785 commit 99f6ff4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labelbox/data/serialization/ndjson/converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ def serialize(
3939
A generator for accessing the ndjson representation of the data
4040
"""
4141
for example in NDLabel.from_common(labels):
42-
yield example.dict(by_alias=True)
42+
yield example.dict(by_alias=True, exclude_none=True)

0 commit comments

Comments
 (0)