gojsonq icon indicating copy to clipboard operation
gojsonq copied to clipboard

result is []interface

Open huanBird opened this issue 4 years ago • 1 comments

this jsonStr = "{"uid":17766,"openid":"ni8vhveqn6","appOpenId":"nq46kiae15","unionId":"i2jki7ttm2","nickName":"","avatarUrl":"","gender":"0","cpc":"","wxappShareImg":"","inviteCode":"","tel":"","loginTime":1603268944,"status":0,"loginIP":"","platform":"","channel":"","versionCode":"","loginType":1,"CreatedAt":"2020-10-21T16:29:05+08:00","UpdatedAt":"2020-10-21T16:29:05+08:00"}"`

i want get uid and openid ,why my get is 【】interface

userJsonq := gojsonq.New().FromString(strJson) userRes := userJsonq.Select("uid","openid").Get()

huanBird avatar Oct 21 '20 08:10 huanBird

I have the same issue. Using "ONLY" also gets me the same empty result.

cryptomatictrader avatar Dec 03 '21 20:12 cryptomatictrader