I'm surprised you don't want omitempty for yaml if you want it for json.