mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-29 10:21:01 -06:00
12 lines
233 B
Go
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
|
|
}
|