key解析支持转义符的处理

This commit is contained in:
2023-03-30 12:02:40 +08:00
parent 047935c85c
commit 9bbd781a1f
2 changed files with 11 additions and 1 deletions

View File

@ -13,7 +13,7 @@ import (
)
func TestNew(t *testing.T) {
jsonData := `{"name": "zhang", "age":17}`
jsonData := `{"n\\\\\\ame": "zhang", "age":17}`
g, err := New(jsonData)
if nil != err {
fmt.Println(err.Error())