Home
Sign Up
Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
V2EX
›
程序员
请教各位, golang json 反序列化
crimeshaper
·
Aug 13, 2020
· 2403 views
This topic created in 2274 days ago, the information mentioned may be changed or developed.
我有一个几层嵌套的 json 数组,为了获取最里层的某一个值,要创建很多 struct,神烦!哪位大佬有简单的方式或者好的包推荐吗?
JSON
嵌套
最里层
神烦
5 replies
VANHOR
Aug 13, 2020
1
连续类型断言.......
creedowl
Aug 13, 2020 via Android
2
gjson
janxin
Aug 13, 2020
3
https://github.com/tidwall/gjson
kkkwar
Aug 13, 2020
4
https://github.com/spf13/viper
crimeshaper
OP
Aug 13, 2020
5
@
VANHOR
@
creedowl
@
janxin
@
kkkwar
谢各位老哥,我试一下。为了取个 es 的三次聚合结果,创了八个 struct,心累。
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
1718 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 484ms ·
UTC 17:14
·
PVG 01:14
·
LAX 09:14
·
JFK 12:14
♥ Do have faith in what you're doing.
❯