I have a struct VideoInfo
that has a key in it called embedCode
. The API I am querying returns the embed code as embed_code
. During unmarshalling the response how do I ensure embed_code
goes into embedCode
?
Also is there an easy way to take a large json string and automatically turn it into a struct, or can one only use a map?