有人可以帮助我从以下的json中提取值吗:
[ [ { "name": "x", "age": "y", "class": "z" } ] ]
jq
age
行人通道:
.[] | .[] | .age
简洁的方式:
.[][].age
还有一种可以考虑的可能性(语义不同):
.. | .age?