add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

View File

@@ -1,20 +1,20 @@
# ajson
> JSON 对象执行 JSONPath 操作
> 更多信息:<https://github.com/spyzhov/ajson>.
> JSON 对象执行 JSONPath。
> 更多信息:<https://github.com/spyzhov/ajson>
- 从文件中读取 JSON 并执行指定的 JSONPath 表达式:
`ajson '{{$..json[?(@.path)]}}' {{路径/到/文件.json}}`
`ajson '{{$..json[?(@.path)]}}' {{path/to/file.json}}`
-标准输入中读取 JSON 并执行指定的 JSONPath 表达式:
- `stdin` 中读取 JSON 并执行指定的 JSONPath 表达式:
`cat {{路径/到/文件.json}} | ajson '{{$..json[?(@.path)]}}'`
`cat {{path/to/file.json}} | ajson '{{$..json[?(@.path)]}}'`
- 从 URL 中取 JSON 并计算指定的 JSONPath 表达式:
- 从 URL 中取 JSON 并评估指定的 JSONPath 表达式:
`ajson '{{avg($..price)}}' '{{https://example.com/api/}}'`
- 读取一些简单的 JSON 并计算一个值:
`echo '{{3}}' | ajson '{{2 * pi * $}}'`
`echo '{{3}}' | ajson '{{2 * pi * $}}'`