完成一个简版JSON树构造

This commit is contained in:
2021-03-11 00:05:56 +08:00
parent dc943d4549
commit 1f425c3973
6 changed files with 238 additions and 7 deletions

20
json/json_test.go Normal file
View File

@ -0,0 +1,20 @@
// Package json...
//
// Description : json...
//
// Author : go_developer@163.com<张德满>
//
// Date : 2021-03-10 11:44 下午
package json
import (
"fmt"
"testing"
)
func TestJSON(t *testing.T) {
tree := NewDynamicJSON()
tree.SetValue("extra.height.value", 180)
tree.SetValue("extra.height.unit", "cm")
fmt.Println(tree.root)
}