jaq 3.0.0 released 🚀 with multiple format support (YAML, CBOR, TOML, XML, CSV, TSV), new shiny manual, byte strings, speed ups, lots of jq compatibility fixes and a lot more.
Congrats and nice work Michael Färber!
https://github.com/01mf02/jaq/releases/tag/v3.0.0
#jq #jaq
Release 3.0 · 01mf02/jaq

jaq is a jq clone with focus on correctness, speed, and simplicity. The most outstanding change in jaq 3.0 is its multi-format support, allowing you to read and write several data formats such as Y...

GitHub
🚀 Wow, #jsongrep is faster than jq? Alert the media! 📣 After a mere 17-minute read filled with mind-numbing automata theory and #benchmark babble, you'll finally learn that using jsongrep will save you a whopping nanosecond per query. 💤 Meanwhile, the rest of us will continue to use #jq, blissfully unaware of this groundbreaking revelation. 🙄
https://micahkepe.com/blog/jsongrep/ #automation #performance #tech #news #HackerNews #ngated
jsongrep is faster than {jq, jmespath, jsonpath-rust, jql}

An introduction to the jsongrep tool, a technical explanation of its DFA-based search engine, and performance results against popular JSON query tools.

Micah's Secret Blog
jsongrep is faster than {jq, jmespath, jsonpath-rust, jql}

An introduction to the jsongrep tool, a technical explanation of its DFA-based search engine, and performance results against popular JSON query tools.

Micah's Secret Blog

I published my notes on using #jq to add an element to an array while ensuring you don't create a duplicate in the array.

This comes up when I'm writing a jq transformation I want to be able to run multiple times without adding a new entry each time (i.e. make it idempotent).

https://salferrarello.com/add-element-to-array-if-it-does-not-already-exist-with-jq/

Add Element to Array if It Does Not Already Exist with jq - Sal Ferrarello

This is how I use jq to conditionally add an element to an array only if it does exist there already. In other words, add an element to an array only if it doesn't create a duplicate in the array. This is particularly helpful when I'm scripting a JSON transformation and want to make it idempotent.

Sal Ferrarello
fq 0.17.0 released 🥳 jq languages fixes and some minor decoder fixes and improvements.
https://github.com/wader/fq/releases/tag/v0.17.0
#fq #jq
Release v0.17.0 · wader/fq

Changes fromjson now works more like jq and as one would expect for decode value. fromjson used to be implement as normal format decode which returns decode values which in turn when decoding from...

GitHub

Afin de récupérer les textes des diapositives créées dans Polymny Studio (application en ligne permettant de réaliser des capsules vidéo pour commenter un pdf), j'ai découvert l'utilisation de la commande jq qui vaut le détour pour extraire les données d'un fichier json.
Toutes les info sont ici :
https://lofurol.fr/joomla/programmation/388-extraire-des-donnees-dun-fichier-json-vers-un-fichier-markdown

#PolymnyStudio #shell #script #json #jq #markdown

Lo Furòl - Extraire des données d'un fichier JSON vers un fichier Markdown

Comment extraire les données d'un fichier json vers un fichier markdown

#til #git commits messages esp for #sourcehut need always be valid #ascii chars for its #graphql api
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd6 in position 527572
0xd6 is a valid Latin-1 character (Ö) but invalid as a UTF-8 continuation byte. That byte pattern — a single high byte that isn't a valid UTF-8 sequence — is the signature of Latin-1 or Windows-1252 encoded text leaking into what should be a UTF-8 response. Likely a commit author name with a non-ASCII character encoded in Latin-1 by their git client
but why
> GraphQL errors with non-ASCII or Latin characters in JSON usually stem from encoding mismatches or unescaped characters (like
\, ", or control codes
-
) causing jq to fail. To fix this, ensure the GraphQL server returns UTF-8, sanitize data for JSON-style escapes, or use --raw-output (-r) and --raw-input (-R) in jq
#jq #json
finally a case where i need #python as #bash gives up

Fili (@filiksyos)

Openclaw 팁: 에이전트가 모든 세션을 저장하며 내장된 채팅 기록 검색 기능이 있지만 대부분의 VPS에서는 기본 활성화되어 있지 않다고 안내합니다. ripgrep과 jq를 설치(예: sudo apt install ripgrep jq)하면 채팅 히스토리를 검색할 수 있어 지난주 대화를 조회할 수 있다고 설명합니다. 개발/운영 팁성 기술 업데이트입니다.

https://x.com/filiksyos/status/2028809289171710171

#openclaw #chathistory #ripgrep #jq #vps

Fili (@filiksyos) on X

Openclaw tip 🦞 Your agent actually stores every session. and there is a built-in skill to search your chat history but it's not enabled by default on most vps install jq to enable it: "sudo apt install ripgrep jq" Now you can ask about your last week chat

X (formerly Twitter)

Rudimentary TDD in #jq/#jaq:

1. Choose an input; make a text file for it.
2. Figure out the expected output; make a text file for it.
3. `diff expected.txt =(cat input.txt | jaq -L "lib" 'main_filter')`

It seems like real work to run multiple tests together, but this is a start.