Clean Up JSON to Remove Null Fields
Closed this issue · 1 comments
dvonthenen commented
Proposed changes
For this we need to replace certain fields with a pointer to the type. For example, in diarization the speaker value is always 0 because:
type Response struct {
Speaker int
}
when it should be:
type Response struct {
Speaker *int
}
I bet there is a special annotation to make that happen. Need to investigate.
Not super high priority... just to make the output nicer. People should be using the resulting objects and not messing with raw JSON anyways.
Steps to reproduce
{
Field: Null,
}
Expected behavior
No extra fields
Please tell us about your environment
NA
Other information
NA
dvonthenen commented
This should be available in the latest release. Closing.