How to unmarshall JSON when the fields can have different types depending on other fields?
Channel: Peter Schneider
Date: 2024-04-08

How to unmarshall JSON when the fields can have different types depending on other fields?
I hope you found a solution that worked for you :)
 The Content is licensed under (https://meta.stackexchange.com/help/licensing) CC BY-SA. 
 Attention! This video does always use the same license as the source!
Thanks to all those great people for their contributions!

 (stackoverflow.com/users/2111390/bryant)Bryant 
 (stackoverflow.com/users/2826995/coxley)coxley 
 (stackoverflow.com/users/965900/mkopriva)mkopriva 
 A special thanks goes out to the (https://stackoverflow.com/questions/78284516/how-to-unmarshall-json-when-the-fields-can-have-different-types-depending-on-oth)Stackexchange community 
 
 I wish you all a wonderful day! Stay safe :)
 If anything is off, please write me at peter D.O.T schneider A.T ois42.de
 
  json go