Access Jsonpath第一级儿子
因此,我有这个答案,除其他外,我想提取的是对其他答案进行测试。
{
"subject": {
"pe": {
"total": 23,
"passed": 2,
"failed": 1,
},
"maths": {
"total": 23,
"passed": 19,
"failed": 4,
},
"history": {
"total": 20,
"passed": 17,
"failed": 3
}
}
}
我只能得到主题?喜欢:
{
"pe",
"maths",
"history"
]
So, I have this answer I want to extract, among other things, the subjects, to test against other answers.
{
"subject": {
"pe": {
"total": 23,
"passed": 2,
"failed": 1,
},
"maths": {
"total": 23,
"passed": 19,
"failed": 4,
},
"history": {
"total": 20,
"passed": 17,
"failed": 3
}
}
}
How do I get only the subjects?? Like:
{
"pe",
"maths",
"history"
]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这很简单,您去这里:
That's pretty simple, here you go: