增加关键字场景
This commit is contained in:
@ -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")
|
||||
}
|
||||
|
Reference in New Issue
Block a user