#jq

Hi geeks! 👋

I just open sourced a repo that you may appreciate if you want to ramp-up on jq.
There are 20+ test cases for which you have to provide a jq query that turns the input into the expected output.
It is available here: 👉 codeberg.org/gturri/jq-quest 👈

(please let me know if you have any feedback about it! 🙂 )

#jq #tutorial #geek

a screenshot of an excerpt of the README
Torger Åge Sinnesdalstroka@snabelen.no
2025-12-21

#wget #jq
How do I get the daysWithPrecitiptation data? I can get the other with, for instance, jq -r '.historical.summary.precipitation.wettestDay[]'

2025-12-19

Node.js devs, so picture this: you run `npm install` and you get a bunch of packages with audit errors.

The only thing I want to know at that point is what’s the root package that these dependencies belong to? (Running npm audit fix is a last resort as I don’t like it fiddling around with the dependencies of nested packages.)

It’s also not a straightforward thing to do, but it’s nothing jq and a bit of piping can’t fix:

```bash
npm audit --json | jq -r '.vulnerabilities[].name' | xargs -n1 npm ls
```

If you’re using fish shell, add an abbr(aviation) or an alias to that with a name like npm-audit-tree and you’re golden ;)

```bash
abbr --add --global npm-audit-tree 'npm audit --json | jq -r '.vulnerabilities[].name' | xargs -n1 npm ls'
```

(I usually prefer abbreviations to aliases as I like to remember/see the actual command being executed.)

Enjoy 💕

#NodeJS #npm #audit #security #JavaScript #JSON #jq #xargs #dev #tip

2025-12-17

Mastodon is my main source of interesting new weblinks. I wondered if one can extract and save all that links to file.

So, I made a #shell script that can extract all weblinks from a Mastodon user's outbox, basically using #curl, #sed, #jq, and #grep.

codeberg.org/chrlns/linkfed/sr

Now, I can feed those links periodically into my #yacy instance and have a (private) search engine for my bookmarks.

I love the power of the #unix shell and #freesoftware.

Mattias Wadmanwader@fosstodon.org
2025-12-07

fq 0.16.0 released github.com/wader/fq/releases/t 🥳
jq language fixes, a new safetensors decoder and minor improvements and fixes to mp4, avc and flac decoders.
#fq #jq

2025-12-02

#jq but for #Markdown? Thats interesting, never thought of that.

mdq: jq for Markdown github.com/yshavit/mdq via @wallabagapp

​Piko, DECT pikopiko@chaos.social
2025-12-02

Bei #American #AA scheint's wohl 340 (EDIT: mittlerweile auf 209 korrigiert) Flugzeuge zu betreffen.

Bei #Jetstar #JQ wohl nen Drittel der Flotte.

Maintenance wird sich bestimmt freuen.

Happy Thanksgiving!

bbc.com/news/articles/c8e9d13x

Alejandro Baezzeab@fosstodon.org
2025-11-27

#hurl now makes #json have some formatting when an output response. 😍

I use hurl both home and at work. And while you can use #jq to format, it is really nice not to have to look for another tool when I'm troubleshooting tests. 😎

hurl.dev/blog/2025/11/26/hurl-

🍮 Vanilla(static)CMSlaravista@mastodon.uno
2025-11-20

🔍 / #software / #cheatsheet / #jq

jq cheat sheet

This cheat sheet provides a concise reference for jq, covering syntax, functions, and practical examples to parse, filter, and transform #JSON data from the command line. It includes basic operations, advanced transformations, and real-world use cases.

🐱🔗 laravista.altervista.org/CatLi

#catlink #softwarecheatsheet

uvok cheetahuvok@woof.tech
2025-11-15

Convert a Proxmox API call to LXC to the appropriate netbox VM import.
Take One:

```
jq '[.data[] | {name,status,cluster: "Proxmox Home", site: "Home Residence", vcpus: .cpus, memory: (.maxmem/1024.0/1024.0), disk: (.maxdisk/1024.0/1024.0), serial: .vmid}]' < lxcs.json
```

#jq #netbox #proxmox

Michele Agostinelli Blogmichele@blog.agostinelli.eu
2025-11-01

Mastodon: toot da command line

Non tutti sanno che... E' semplicissimo fare un post (toot) sul proprio profilo #mastodon con un semplice comando, ad esempio utilizzando #curl. [...]

blog.agostinelli.eu/mastodon-t

2025-10-24

Finding missing releaseTimestamps in Renovate

How to query your Renovate debug logs (or `renovate-graph` exports) for missing release timestamps.

fed.brid.gy/r/https://www.jvt.

Featured image for sharing metadata for article
2025-10-21

#tersoftware de linha de comando

#jq - formatação e bonitificação de texto em formato JSON
#bat - um #cat com asas :)
#ncdu - interface em ncurses pro #du, muito útil pra encontrar (e apagar) diretórios e arquivos gigantes no disco
#ranger - navegador de arquivos com atalhos do vim
#z - acessa pastas frequentemente utilizadas diretamente
#fzf - backend de fuzzy search compatível com todos os sabores de shells e vim.
#fd - um #find mais intuitivo
#rg - um #grep mais intuitivo, com mais funcionalidades (e mais rápido)

2025-10-11

Ausgefüllte #PDF #Formulare automatisiert einlesen und in #Datenbanken oder #REST #API verarbeiten. Der Long-Read zum Wochenende, viel Spaß!

blog.jakobs.systems/blog/20251

#Digitalisierung #pdfcpu #jq und #curl

Screenshot mit links einer ausfüllbaren PDF und rechts einer Kommandozeile mit dem Weg, wie strukturierte Formularfelder aus einer PDF in einer CSV Datei zur Weiterverarbetung landen.
Mattias Wadmanwader@fosstodon.org
2025-10-05

@Pineywoozle @deusfigendi @deusfigendi 🥳 jq, mostly by accident, is liberal with some types like string and numbers but not so much with array and objects. but I've used something like this to recover whatever there was up until the error:

$ echo '[1,[2,]' | jq -c --stream-errors -n 'reduce inputs as [$p,$v] (null; setpath($p; $v)?)'
[1,[2]]

#jq

Detlev Zundel [Team Human]dzu@hostsharing.coop
2025-10-02

@preya @LittleJoeMuc Boah, coole Sache. Gepaart mit #jq klappt das relativ schnell auf der Linux Kommandozeile:

jq '.features | map(select(.properties.name == "80331"))' nrw-postleitzahlen.geojson > 80331.geojson

Die <plz>.geojson Datei einfach in #uMap hochladen. Rinse and repeat.

GripNewsGripNews
2025-09-17

🌘 jqp:互動式 jq 查詢的終端機使用者介面
➤ 以前所未有的方式與 JSON 互動
github.com/noahgorstein/jqp
jqp 是一個創新的終端機使用者介面(TUI)工具,讓使用者能以互動方式探索和實驗 `jq` 的強大功能。它利用 Go 語言編寫的 `gojq` 函式庫,提供一個直觀的環境來處理 JSON 和 NDJSON 資料。使用者可以輸入 `jq` 查詢,即時預覽結果,並透過快捷鍵輕鬆複製、儲存或導覽。jqp 支援從檔案或標準輸入讀取資料,並可透過命令列參數或 YAML 設定檔進行客製化,包括主題和顏色配置,進一步提升了使用者體驗。
+ 這個工具太棒了!讓處理 JSON 變得前所未有的簡單和直觀。
+ 我喜歡它的互動式查詢功能,以及可以直接在終端機中預覽結果的能力。省了我很多時間。

Hey Guselebertus
2025-09-13

Ima tell you two facts about myself for which I feel shame:
- I never remember what flags to use when I absolutely have to manually terminate a node. Someone I trust once pasted it to me and shell history is my storage for that info.
- I don’t know how to declare a list or array in and insert entries into it. I’m embarrassed that I think “I’m doing it wrong” and won’t ask for help.

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst