2022-07-04 18:19:04 +08:00
|
|
|
// Package filter ...
|
|
|
|
//
|
|
|
|
// Description : filter ...
|
|
|
|
//
|
|
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
|
|
//
|
|
|
|
// Date : 2022-07-04 18:13
|
|
|
|
package filter
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func Test_parseLexical(t *testing.T) {
|
2022-07-04 18:39:29 +08:00
|
|
|
jsonData := `{
|
|
|
|
"name":"zhangsan",
|
|
|
|
"age":"18",
|
|
|
|
"extension":{
|
|
|
|
"sex":"man",
|
|
|
|
"height":"180"
|
|
|
|
},
|
|
|
|
"teacher_list":[
|
|
|
|
{
|
|
|
|
"name":"t1",
|
|
|
|
"age":"11"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"t2",
|
|
|
|
"age":"12"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}`
|
|
|
|
parseLexical(jsonData)
|
2022-07-04 18:19:04 +08:00
|
|
|
}
|