参考资料库

jq 和 JSONPath 速查表

用于 JSON 检查工作流的选择器和过滤器。

Pretty print

参考: Format JSON in the terminal.

jq . data.json

Select field

参考: Read a top-level field.

jq .name data.json

Map array

参考: Extract IDs from an array.

jq ".items[].id" data.json

JSONPath

参考: Select every item ID.

$.items[*].id

相关工具

相关分类