In Go what is the proper way to unmarshall JSON when the fields can have different types depending on other fields?
Assume I have a JSON message that looks like this: { "type": string "data": list of something that is based on above type } two examples might be { "type": "car" "data": [{"color": "red", "mpg": 16.4}] } and { "type":…