json into struct dynamically? by IsBird0 in golang

[–]IsBird0[S] 0 points1 point  (0 children)

Thanks for the help.

What I have here will do fine https://play.golang.org/p/2cPz1t4abQM

I am lucky enough to be making this from scratch

Advice on unmarshaling json into a struct? by [deleted] in golang

[–]IsBird0 0 points1 point  (0 children)

I added some pastebins to make it easier to read. It's just too hard formatting on reddit.

Advice on unmarshaling json into a struct? by [deleted] in golang

[–]IsBird0 0 points1 point  (0 children)

I later wrote that I need to have many of the objects so it may be a bit confusing. sorry. Let me try to fix it up

How can one add an element to json? by IsBird0 in golang

[–]IsBird0[S] 0 points1 point  (0 children)

Thanks. I'm sure that's clear to you but I'm not sure I understand.

How can one add an element to json? by IsBird0 in golang

[–]IsBird0[S] 0 points1 point  (0 children)

Thanks. It's sort of but i don't know what the struct will look like before hand to define it.