edb/table_struct_test.go

18 lines
297 B
Go
Raw Permalink Normal View History

2020-03-06 10:34:43 +00:00
package main
import (
"testing"
"github.com/tidwall/gjson"
)
func TestGjson(t *testing.T) {
// "{"name": {""}}"
content := `{"name":{"first":"int ","last":"Prichard"},"age": (47)}`
r := gjson.Parse(content)
r.ForEach(func(k, v gjson.Result) bool {
t.Error(k, v.Raw)
return true
})
}