#.

10 messages · Page 1 of 1 (latest)

upper moat
#

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

ivory geode
#

type MyType map[string]any

#

func (m *MyType) UnmarshalJSON(...)...

upper moat
#

nah

#

use json.NewDecoder then you call .Token

#

you can also use json.Unmarshal and use extra logic to convert types after