增加关键字场景

This commit is contained in:
2022-07-04 23:28:12 +08:00
parent 8071532012
commit 5b099f34c3
2 changed files with 13 additions and 5 deletions

View File

@ -8,6 +8,7 @@
package filter
import (
"fmt"
"testing"
)
@ -31,5 +32,9 @@ func Test_parseLexical(t *testing.T) {
]
}`
//jsonData = `{"name":"zhangsan","age":"18","extension":{"sex":"man","height":"180"},"teacher_list":[{"name":"t1","age":"11"},{"name":"t2","age":"12"}]}`
NewLexical(jsonData).Parse(jsonData)
r, _ := NewLexical(jsonData).Parse(jsonData)
for _, val := range r {
fmt.Print(val.Val)
}
fmt.Print("\n")
}