Fix issue of gjson package in map conversion
@@ -49,7 +49,8 @@ func New(value interface{}, safe...bool) *Json {
}
default:
v := (interface{})(nil)
- if v = gconv.Map(value); v != nil {
+ if m := gconv.Map(value); len(m) > 0 {
+ v = m
j = &Json {
p : &v,
c : byte(gDEFAULT_SPLIT_CHAR),
