サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
デスク環境を整える
jqlang.github.io
jq is written in C and has no runtime dependencies, so it should be possible to build it for nearly any platform. Prebuilt binaries are available for Linux, macOS and Windows. The binaries should just run, but on macOS and Linux you may need to make them executable first using chmod +x jq. jq is licensed under the MIT license. For all of the gory details, read the file COPYING in the source distri
For other versions, see 1.7, 1.6, 1.5, 1.4, 1.3 or development version. A jq program is a "filter": it takes an input, and produces an output. There are a lot of builtin filters for extracting a particular field of an object, or converting a number to a string, or various other standard tasks. Filters can be combined in various ways - you can pipe the output of one filter into another filter, or c
GitHub has a JSON API, so let's play with that. This URL gets us the last 5 commits from the jq repo. curl 'https://api.github.com/repos/jqlang/jq/commits?per_page=5' Show result [ { "sha": "cff5336ec71b6fee396a95bb0e4bea365e0cd1e8", "node_id": "C_kwDOAE3WVdoAKGNmZjUzMzZlYzcxYjZmZWUzOTZhOTViYjBlNGJlYTM2NWUwY2QxZTg", "commit": { "author": { "name": "Mattias Wadman", "email": "mattias.wadman@gmail.c
jq is a lightweight and flexible command-line JSON processor. jq is like sed for JSON data - you can use it to slice and filter and map and transform structured data with the same ease that sed, awk, grep and friends let you play with text. jq is written in portable C, and it has zero runtime dependencies. You can download a single binary, scp it to a far away machine of the same type, and expect
このページを最初にブックマークしてみませんか?
『jqlang.github.io』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く