mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
commit
be1e974ccc
1 changed files with 2 additions and 2 deletions
|
|
@ -220,10 +220,10 @@ func ToJson(v interface{}) string {
|
|||
return string(data)
|
||||
}
|
||||
|
||||
// FromJson converts a YAML document into a map[string]interface{}.
|
||||
// FromJson converts a JSON document into a map[string]interface{}.
|
||||
//
|
||||
// This is not a general-purpose JSON parser, and will not parse all valid
|
||||
// YAML documents. Additionally, because its intended use is within templates
|
||||
// JSON documents. Additionally, because its intended use is within templates
|
||||
// it tolerates errors. It will insert the returned error message string into
|
||||
// m["Error"] in the returned map.
|
||||
func FromJson(str string) map[string]interface{} {
|
||||
|
|
|
|||
Loading…
Reference in a new issue