3 ms·
> you need to know the structure of JSON in advance and define in your struct You can unmarshal to map[string]any if it’s of any help. You have to cast a lot b
by thiht 4y ago
> you need to know the structure of JSON in advance and define in your struct
You can unmarshal to map[string]any if it’s of any help. You have to cast a lot but it’s sometimes useful.
- lormayna 4y agoThank you for the suggestion, but yes, I need to cast a lot.