diff options
Diffstat (limited to 'vendor/github.com/bytedance/sonic/ast/node.go')
| -rw-r--r-- | vendor/github.com/bytedance/sonic/ast/node.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/bytedance/sonic/ast/node.go b/vendor/github.com/bytedance/sonic/ast/node.go index 1c5ff6439..6ea5f52ae 100644 --- a/vendor/github.com/bytedance/sonic/ast/node.go +++ b/vendor/github.com/bytedance/sonic/ast/node.go @@ -64,8 +64,8 @@ type Node struct { // UnmarshalJSON is just an adapter to json.Unmarshaler. // If you want better performance, use Searcher.GetByPath() directly func (self *Node) UnmarshalJSON(data []byte) (err error) { - *self = NewRaw(string(data)) - return self.Check() + *self = newRawNode(rt.Mem2Str(data), switchRawType(data[0]), false) + return nil } /** Node Type Accessor **/ |
