Also, quick plug for
https://github.com/twpayne/go-jsonstruct
which will generate type-safe Go structs for you for all fields. Just throw
a bunch of JIRA JSON responses at it.
Regards,
Tom
On Friday, September 13, 2024 at 12:39:41 AM UTC+2 burak serdar wrote:
> The current json implementation
The current json implementation in the stdlib does not support a
catchall like that. Also, you cannot embed a map in a struct.
You can replace JIRAFields with a map[string]any. If there are keys
with known structures, you can do a map[string]json.RawMessage, and
then you can do json.Unmarshal(fiel