mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
2939caf9a2
* validate against role field update * lowercase error string * make all msgs consistent style * fix wording Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com> * sayonara simple json Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
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
|
|
}
|