Unverified Commit be1e974c authored by Matthew Fisher's avatar Matthew Fisher Committed by GitHub

Merge pull request #3494 from Thiht/patch-1

docs: Fix FromJson comment
parents e35bd821 a59d2125
......@@ -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{} {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment