Is it possible to only use omitempty when an object is nil and not when it's an empty array?
I would like for the JSON marshaller to not display the value when an object is nil, but show object: [] when the value is an empty list.
objects: nil
{
...
}
objects: make([]*Object, 0)
{
...
"objects": []
}