JSON 获取子节点个数

Poto 2022/2/28 发布 · 2022/2/28 更新 · 1959 次阅读

json 内容如下:

{"status":true,"response":{"result":true,"errors":[{"id":"e1863671137","offset":2,"length":2,"description":{"en":"Did you mean \u201cam\u201d or \u201cwill be\u201d?"},"bad":"is","better":["am","will be"],"type":"grammar"},{"id":"e1961857503","offset":8,"length":8,"description":{"en":"Possible spelling mistake found."},"bad":"engeneer","better":["engineer","engender"],"type":"spelling"}]}}

 

通过「提取json」输出根对象 rootToken

表达式获取子节点数量 $={rootToken}["response"]["errors"].Count

 

 

 

· {{comment.createTimeStr}}
{{reply.votePoints}}
回复   – {{reply.createTimeStr}}
回复 x
标签
目录
相关操作