Trying to marshal a struct with no public fields nor custom marshalingSCC-SA9005
Bug risk
Critical
The encoding/json and encoding/xml packages only operate on exported fields in structs, not unexported ones. It is usually an error to try to (un)marshal structs that only consist of unexported fields.