增减 "与:之间无效空格过滤

This commit is contained in:
2022-07-04 20:59:57 +08:00
parent 89f595c48a
commit d933ff5f03
4 changed files with 48 additions and 8 deletions

View File

@ -13,7 +13,7 @@ import (
func Test_parseLexical(t *testing.T) {
jsonData := `{
"name":"zhangsan",
"name" :"zhangsan",
"age":"18",
"extension":{
"sex":"man",
@ -31,5 +31,5 @@ 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"}]}`
parseLexical(jsonData)
NewLexical(jsonData).Parse(jsonData)
}