From 93d61e636911fc898d38b37af06cd06ec7bc088c Mon Sep 17 00:00:00 2001 From: hbc Date: Wed, 28 Feb 2018 11:21:22 +0800 Subject: [PATCH] Add `arrayOrMap` result description Explain `Result.Value` will return array and map when possible. --- gjson.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gjson.go b/gjson.go index d2e11b9..241bd6d 100644 --- a/gjson.go +++ b/gjson.go @@ -583,6 +583,8 @@ func (t Result) Exists() bool { // Number, for JSON numbers // string, for JSON string literals // nil, for JSON null +// map[string]interface{}, for JSON objects +// []interface{}, for JSON arrays // func (t Result) Value() interface{} { if t.Type == String {