I am trying to unmarshal a data which is of type interface. So I need to convert the interface type to []byte and pass it to unmarshall. i tried
err := json.Unmarshal([]byte(kpi), &a) => failedkpidata, res := kpi.([]byte) => failed, kpidata is nilSo is there any way we can convert it?