10 messages · Page 1 of 1 (latest)
no
in a custom json unmarshal you don't need to reimplement all of json
json.Decoder let you somewhat easily parse stuff
it handles syntax for you and you work with tokens
that hardcoded
type MyType map[string]any
func (m *MyType) UnmarshalJSON(...)...
nah
use json.NewDecoder then you call .Token
json.NewDecoder
.Token
you can also use json.Unmarshal and use extra logic to convert types after
json.Unmarshal