欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

jq.exe 一個(gè)輕量級(jí)且靈活的命令行JSON處理器 v1.7.1

命令行JSON處理器

  • 軟件大?。?span>962KB
  • 軟件語言:英文軟件
  • 軟件類型:國外軟件
  • 軟件授權(quán):免費(fèi)軟件
  • 軟件類別:編程其它
  • 應(yīng)用平臺(tái):Windows平臺(tái)
  • 更新時(shí)間:2025-05-30
  • 網(wǎng)友評(píng)分:
360通過 騰訊通過 金山通過

情介紹

jq是一個(gè)輕量級(jí)且靈活的命令行JSON處理器。

jq類似于用于JSON數(shù)據(jù)的sed——你可以使用它來切片、過濾、映射和轉(zhuǎn)換結(jié)構(gòu)化數(shù)據(jù),就像sed、awk、grep和朋友們讓你玩文本一樣簡(jiǎn)單。

jq是用可移植C編寫的,它沒有運(yùn)行時(shí)依賴關(guān)系。您可以下載一個(gè)二進(jìn)制文件,將其scp到同一類型的遠(yuǎn)程機(jī)器上,并期望它能夠工作。

jq可以毫不費(fèi)力地將您擁有的數(shù)據(jù)格式轉(zhuǎn)換為您想要的格式,并且執(zhí)行此操作的程序通常比您預(yù)期的更短、更簡(jiǎn)單。

JQ使用方法

下載適合 Windows 的 jq

為了在 Windows 上使用 jq,需要先從官方網(wǎng)站或其他可信資源下載適用于 Windows 的可執(zhí)行文件。通??梢哉业?nbsp;.exe 文件版本。

可以從本站下載或者從官方網(wǎng)站下載jq.exe

選擇與系統(tǒng)架構(gòu)相匹配的壓縮包(例如 jq-win64.exe 對(duì)于 64 位系統(tǒng)),并將其解壓到本地磁盤中的合適位置。

下載的文件名為 jq-windows-amd64.exe 可以修改為 jq.exe,方便調(diào)用。

type old.json | jq.exe >> C:\Users\LTH\Desktop>new.json

old.json是你要格式化的文件,new.json是格式化完后的文件。

EZ,搞定了。

配置環(huán)境變量以便全局調(diào)用

為了讓命令提示符能夠識(shí)別 jq 并允許在整個(gè)計(jì)算機(jī)范圍內(nèi)運(yùn)行此程序而無需指定完整路徑:

  • 將解壓后的 jq.exe 所處目錄添加至系統(tǒng)的 PATH 環(huán)境變量中;
  • 或者直接把 jq.exe 移動(dòng)到已存在于 PATH 中的一個(gè)現(xiàn)有文件夾內(nèi),比如 C:\Windows\System32\.

完成以上設(shè)置后,在任意 CMD 或 PowerShell 終端窗口輸入 jq --version 來驗(yàn)證是否成功加載該軟件及其具體版本號(hào)。

測(cè)試安裝

一旦完成了上述步驟,則可以通過打開一個(gè)新的命令行會(huì)話來測(cè)試 jq 是否正常工作。嘗試打印幫助信息以確認(rèn)一切就緒:

jq --help

如果顯示了詳細(xì)的幫助文檔說明,則表明 jq 已經(jīng)被正確安裝并且可以在 Windows 上正常使用了。

jq命令行參數(shù)

jq --help
jq - commandline JSON processor [version 1.7.1]
Usage:  jq [options] <jq filter> [file...]
        jq [options] --args <jq filter> [strings...]
        jq [options] --jsonargs <jq filter> [JSON_TEXTS...]
jq is a tool for processing JSON inputs, applying the given filter to
its JSON text inputs and producing the filter's results as JSON on
standard output.
The simplest filter is ., which copies jq's input to its output
unmodified except for formatting. For more advanced filters see
the jq(1) manpage ("man jq") and/or https://jqlang.github.io/jq/.
Example:
        $ echo '{"foo": 0}' | jq .
        {
          "foo": 0
        }
Command options:
  -n, --null-input          use `null` as the single input value;
  -R, --raw-input           read each line as string instead of JSON;
  -s, --slurp               read all inputs into an array and use it as
                            the single input value;
  -c, --compact-output      compact instead of pretty-printed output;
  -r, --raw-output          output strings without escapes and quotes;
      --raw-output0         implies -r and output NUL after each output;
  -j, --join-output         implies -r and output without newline after
                            each output;
  -a, --ascii-output        output strings by only ASCII characters
                            using escape sequences;
  -S, --sort-keys           sort keys of each object on output;
  -C, --color-output        colorize JSON output;
  -M, --monochrome-output   disable colored output;
      --tab                 use tabs for indentation;
      --indent n            use n spaces for indentation (max 7 spaces);
      --unbuffered          flush output stream after each output;
      --stream              parse the input value in streaming fashion;
      --stream-errors       implies --stream and report parse error as
                            an array;
      --seq                 parse input/output as application/json-seq;
  -f, --from-file file      load filter from the file;
  -L directory              search modules from the directory;
      --arg name value      set $name to the string value;
      --argjson name value  set $name to the JSON value;
      --slurpfile name file set $name to an array of JSON values read
                            from the file;
      --rawfile name file   set $name to string contents of file;
      --args                consume remaining arguments as positional
                            string values;
      --jsonargs            consume remaining arguments as positional
                            JSON values;
  -e, --exit-status         set exit status code based on the output;
  -b, --binary              open input/output streams in binary mode;
  -V, --version             show the version;
  --build-configuration     show jq's build configuration;
  -h, --help                show the help;
  --                        terminates argument processing;
Named arguments are also available as $ARGS.named[], while
positional arguments are available as $ARGS.positional[].

更新日志

13 December 2023

jq 1.7.1 released. Security (CVE-2023-50246, CVE-2023-50268) and bug fixes. See release notes for details.

7 September 2023

After a five-year hiatus, we've returned with a revitalized GitHub organization and a much-anticipated 1.7 release, thanks to our new admins and maintainers. Check out the download page for installation options and see the release notes for details.

載地址

下載錯(cuò)誤?【投訴報(bào)錯(cuò)】

jq.exe 一個(gè)輕量級(jí)且靈活的命令行JSON處理器 v1.7.1

      氣軟件

      關(guān)文章

      載聲明

      ☉ 解壓密碼:www.dbjr.com.cn 就是本站主域名,希望大家看清楚,[ 分享碼的獲取方法 ]可以參考這篇文章
      ☉ 推薦使用 [ 迅雷 ] 下載,使用 [ WinRAR v5 ] 以上版本解壓本站軟件。
      ☉ 如果這個(gè)軟件總是不能下載的請(qǐng)?jiān)谠u(píng)論中留言,我們會(huì)盡快修復(fù),謝謝!
      ☉ 下載本站資源,如果服務(wù)器暫不能下載請(qǐng)過一段時(shí)間重試!或者多試試幾個(gè)下載地址
      ☉ 如果遇到什么問題,請(qǐng)?jiān)u論留言,我們定會(huì)解決問題,謝謝大家支持!
      ☉ 本站提供的一些商業(yè)軟件是供學(xué)習(xí)研究之用,如用于商業(yè)用途,請(qǐng)購買正版。
      ☉ 本站提供的jq.exe 一個(gè)輕量級(jí)且靈活的命令行JSON處理器 v1.7.1資源來源互聯(lián)網(wǎng),版權(quán)歸該下載資源的合法擁有者所有。