I have a map whose key his string and value is an interface. I an putting some keys and values into that map I want to marshal it but I want to get a "nonvalid" or I want my marshal comes with an error? In order to succeed it, what kind of variables do I need to put into that map?
myBlobMap := make(map[string]interface{})
blobmap["firstKey"] = "firstValue"
blobmap["secondKey"] = "secondValue"
jsonByte, err := json.Marshal(myBlobMap)