diff --git a/filter.go b/filter.go index 61d1b0c..1194985 100644 --- a/filter.go +++ b/filter.go @@ -248,6 +248,15 @@ func (f *filter) getValue(dataType string, sourceValue gjson.Result, defaultValu return nil, err } return result, nil + case DataTypeObject: + // object + var ( + result map[string]interface{} + ) + if err := util.JSON.UnmarshalWithNumber([]byte(sourceValueStr), &result); nil != err { + return nil, err + } + return result, nil default: return nil, errors.New(dataType + " is not support!") }