In addition: please can you take the problematic piece of code and boil it down to a simple standalone example in
play.golang.org^W
go.dev/play/which reproduces the error - for example, with a static constant string that you're trying to decode, and some structs that you're trying to decode into. Then it should be clear what's happening.
You've pasted some incomplete code, with no type definitions; and an error message about decoding JSON without showing the JSON you're trying to decode.