diff options
Diffstat (limited to 'vendor/github.com/hashicorp/terraform/helper/structure/expand_json.go')
-rw-r--r-- | vendor/github.com/hashicorp/terraform/helper/structure/expand_json.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/github.com/hashicorp/terraform/helper/structure/expand_json.go b/vendor/github.com/hashicorp/terraform/helper/structure/expand_json.go new file mode 100644 index 0000000..b3eb90f --- /dev/null +++ b/vendor/github.com/hashicorp/terraform/helper/structure/expand_json.go | |||
@@ -0,0 +1,11 @@ | |||
1 | package structure | ||
2 | |||
3 | import "encoding/json" | ||
4 | |||
5 | func ExpandJsonFromString(jsonString string) (map[string]interface{}, error) { | ||
6 | var result map[string]interface{} | ||
7 | |||
8 | err := json.Unmarshal([]byte(jsonString), &result) | ||
9 | |||
10 | return result, err | ||
11 | } | ||