This commit is contained in:
@@ -16,10 +16,6 @@ func (m JsonOpt[T]) MarshalJSON() ([]byte, error) {
|
||||
return []byte("null"), nil // actually this would be undefined - but undefined is not valid JSON
|
||||
}
|
||||
|
||||
if m.value == nil {
|
||||
return []byte("null"), nil
|
||||
}
|
||||
|
||||
return json.Marshal(m.value)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user