opentofu/helper/structure/expand_json.go

12 lines
233 B
Go
Raw Normal View History

2017-03-28 06:45:28 -05: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
}