Lowercase JSON key names with JSON Marshal in Go
I wish to use the “encoding/json” package to marshal a struct declared in one of the imported packages of my application. Eg.: type T struct { Foo int } Because it is imported, all available (exported) fields in the struct begins with an upper case letter. But I wish to have lower case key names: … Read more