opentofu/helper/structure/expand_json.go
2017-03-28 12:59:46 +01:00

12 lines
233 B
Go

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
}