数据转为JSONNodeTree,增加对数据源数据格式判断

This commit is contained in:
2021-03-14 23:31:08 +08:00
parent 36d01f81c0
commit 72a01e9946
2 changed files with 97 additions and 0 deletions

View File

@ -12,6 +12,11 @@ import (
"testing"
)
// TestJSON ...
//
// Author : go_developer@163.com<张德满>
//
// Date : 10:58 下午 2021/3/14
func TestJSON(t *testing.T) {
tree := NewDynamicJSON()
fmt.Println(tree.extraSliceIndex("[200]"))
@ -29,3 +34,12 @@ func TestJSON(t *testing.T) {
tree.SetValue("slice.[3]", "zhangdeman")
fmt.Println(tree.String())
}
// TestType 判断数据类型断言
//
// Author : go_developer@163.com<张德满>
//
// Date : 10:59 下午 2021/3/14
func TestType(t *testing.T) {
}