I got json str which i parse like this.
var bdoc interface{}
bson.UnmarshalJSON([]byte(gjson.Get(*str, "user").String()), &bdoc)
my bdoc is of type map[string]interface{}. When i want to get key from my map i do it like this:
bdoc.(map[string]interface{})["pk"]
But how can i set a new value for that "pk" key ? I want to convert that bdoc["pk"] = "1234567". The new value will not be of type interface but of type string.