terraform/helper/structure/expand_json.go

12 lines
233 B
Go
Raw Normal View History

2017-03-28 13:45:28 +02:00
package structure
import "encoding/json"
func ExpandJsonFromString(jsonString string) (map[string]interface{}, error) {
var result map[string]interface{}
err := json.Unmarshal([]byte(jsonString), &result)
return result, err
}