Skip to content

Instantly share code, notes, and snippets.

@sangazh
sangazh / CustomMarshalJSON.go
Created December 19, 2019 10:38
Use custom MarshalJSON to flatten json, simply replaced the key and braces to "", not very decent, but it worked...
type Item interface {
GetName() string
GetType() int
GetID() int
SetID(id int)
GetCreated() string
GetUpdated() string
}
type object struct {