mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 01:41:48 -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
|
||
|
}
|