jq既有公开CLI文档;未核安装、未执行,固定输入输出范围。
调用方式 / profile:jq-json-identity-documentation · 组件版本:documentation-sha256:20fac47d9ce06dee1f5fa40490ab6de81d4b306d7bccbe193f653766145f5f6a · 引用此版本与调用方式
已记录条件
- input_format = json:支持。Supported within this profile and component version. 依据:jq-json-identity-documentation-e1
- output_format = json:支持。Supported within this profile and component version. 依据:jq-json-identity-documentation-e1
- invocation_mode = cli:支持。Supported within this profile and component version. 依据:jq-json-identity-documentation-e2
入口与前提
- 协议
- cli
- 认证
- unknown;本页描述CLI,未核验目标安装或账户条件
- 价格是否查明
- unknown
- 配额是否查明
- unknown
jq
- 仅官方文档声明,配方proposed;本站未连接、注册、调用第三方工具或核验实际账户。
- 正文jq1.8不是当前安装版本;OS、安装和大数精度/资源上限未验证。
- shell quoting随客户端不同;不自动改写源文件。
配方 jq-json-identity-documentation-recipe · 修订 1
所需调用能力:
- validate_and_pretty_print_json
运行前提:
- 仅官方文档声明,配方proposed;本站未连接、注册、调用第三方工具或核验实际账户。
- 正文jq1.8不是当前安装版本;OS、安装和大数精度/资源上限未验证。
- shell quoting随客户端不同;不自动改写源文件。
使用步骤:
- 准备已获授权的最小输入,核对本profile的适用范围、认证与费用;不填私人信息或凭据到公开示例。
- jq '.' < INPUT.json(描述性候选,实际重定向按已批准客户端shell适配,本轮不执行)
- 未来获准调用后核对HTTP/MCP状态、返回结构与请求条件,保留缺项/限流/权限错误;本次没有执行此步骤。
- 输入约定
- 标准输入单个已授权JSON值,filter固定identity操作符 .;不使用raw-input/raw-output。
- 输出约定
- pretty-printed JSON;多输入会产生换行分隔的多JSON值,本profile限单值,不承诺字节不变。
- 成功检查
- 未来获准时核退出状态、错误输出与JSON可解析性及值/结构和大数精度;失败保留输入,不覆盖文件。
- 失败与回退
- 条件不满足、认证/限流/结构错误即停止该调用并保留unknown;不切换付费服务、不猜工具名、不执行写操作。
适用证据
jq-json-identity-documentation-e1 · 来源文档声明
- 原文定位
- .local/deep-cards-v1/cached-cli-batch-20261024-03/sources/jq-json-identity-documentation.txt:L118-L130
- 来源版本
- documentation-sha256:20fac47d9ce06dee1f5fa40490ab6de81d4b306d7bccbe193f653766145f5f6a
- 内容摘要
- 20fac47d9ce06dee1f5fa40490ab6de81d4b306d7bccbe193f653766145f5f6a
- 采集时间
- 2026-10-20T11:07:12.0796600+00:00
jq filters run on a stream of JSON data. The input to jq is parsed as a sequence of whitespace-separated JSON values which are passed through the provided filter one at a time. The output(s) of the filter are written to standard output, as a sequence of newline-separated JSON data. The simplest and most common filter (or jq program) is ., which is the identity operator, copying the inputs of the jq processor to the output stream. Because the default behavior of the jq processor is to read JSON texts from the input stream, and to pretty-print outputs, the . program's main use is to validate and pretty-print the inputs. The jq programming language is quite rich and allows for much more than just validation and pretty-printing.
覆盖条件:input_format=json; output_format=json
jq-json-identity-documentation-e2 · 来源文档声明
- 原文定位
- .local/deep-cards-v1/cached-cli-batch-20261024-03/sources/jq-json-identity-documentation.txt:L131-L147
- 来源版本
- documentation-sha256:20fac47d9ce06dee1f5fa40490ab6de81d4b306d7bccbe193f653766145f5f6a
- 内容摘要
- 20fac47d9ce06dee1f5fa40490ab6de81d4b306d7bccbe193f653766145f5f6a
- 采集时间
- 2026-10-20T11:07:12.0796600+00:00
Note: it is important to mind the shell's quoting rules. As a general rule it's best to always quote (with single-quote characters on Unix shells) the jq program, as too many characters with special meaning to jq are also shell meta-characters. For example, jq "foo" will fail on most Unix shells because that will be the same as jq foo, which will generally fail because foo is not defined. When using the Windows command shell (cmd.exe) it's best to use double quotes around your jq program when given on the command-line (instead of the -f program-file option), but then double-quotes in the jq program need backslash escaping. When using the Powershell (powershell.exe) or the Powershell Core (pwsh/pwsh.exe), use single-quote characters around the jq program and backslash-escaped double-quotes (\") inside the jq program. Unix shells: jq '.["foo"]' Powershell: jq '.[\"foo\"]' Windows command shell: jq ".[\"foo\"]"
覆盖条件:invocation_mode=cli
结构化配方尚未提供或不适用于本版本;旧用法文字保留,连接与执行结果未知。