mirror of https://github.com/grafana/grafana.git
				
				
				
			
		
			
	
	
		
			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 | ||
|  | } |