Merge pull request #67 from bcho/patch-1

Add `arrayOrMap` result description
This commit is contained in:
Josh Baker 2018-03-01 11:15:57 -07:00 committed by GitHub
commit 9ed3f8e1a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -583,6 +583,8 @@ func (t Result) Exists() bool {
// Number, for JSON numbers // Number, for JSON numbers
// string, for JSON string literals // string, for JSON string literals
// nil, for JSON null // nil, for JSON null
// map[string]interface{}, for JSON objects
// []interface{}, for JSON arrays
// //
func (t Result) Value() interface{} { func (t Result) Value() interface{} {
if t.Type == String { if t.Type == String {