mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 13:09:22 -06:00
10 lines
190 B
Go
10 lines
190 B
Go
|
package api
|
||
|
|
||
|
import "encoding/json"
|
||
|
|
||
|
func jsonMap(data []byte) (map[string]string, error) {
|
||
|
jsonMap := make(map[string]string)
|
||
|
err := json.Unmarshal(data, &jsonMap)
|
||
|
return jsonMap, err
|
||
|
}
|