MCPcopy Create free account
hub / github.com/crossoverJie/gscript / TestVisitor_JSONGet

Function TestVisitor_JSONGet

json_test.go:138–142  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

136}
137
138func TestVisitor_JSONGet(t *testing.T) {
139 str := "{\"age\":10, \"abc\":{\"def\":\"def\"}}"
140 get := xjson.Get(str, "abc.def")
141 fmt.Println(get.String())
142}
143func TestVisitor_JSONGet2(t *testing.T) {
144 script := `
145string s="1";

Callers

nothing calls this directly

Calls 2

GetMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected