4 ms·
depending on what you're trying to do a map[string]interface{} is not really want you want. Most likely you want map[string]json.RawMessage if the key can indic
by sigmonsays 5y ago
depending on what you're trying to do a map[string]interface{} is not really want you want. Most likely you want map[string]json.RawMessage if the key can indicate what the next step is in umarshalling.
if the serialized structure doesn't indicate its "Type" somewhere/somehow then you would have to resort to map[string]interface{}