Better way to manage JSON serialization (not deserialization!) in Go.