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.

TIL you can format jq output to be shell-safe by filtering it through @sh.
(There are other text filters like @uri and such too).
https://jqlang.org/manual/#format-strings-and-escaping
#jq
jq 1.8 Manual

jq is a lightweight and flexible command-line JSON processor

Spent forty five minutes troubleshooting some jq stuff I copy pasted from another thing I created. The original works perfectly. This copy kept not grouping right when I updated the group_by with the new keys. I only noticed after the | add was losing most of the data.

Eventually, I noticed I forgot the leading . because the new data has spaces on the key names and I just missed it after adding the ["..."]. Out of frustration, I gsubbed all the keys to have underscores instead of spaces and now I'm lying down to take a nap.

I'm trying to build a nice transformer for the JSON that comes out of Python's DeepDiff and I keep kicking myself in the shins.

#jq

TIL: the @csv filter in #jq

Writing jq queries... with real-time output? Yessir. 🐁

🧪 **jiq** — An interactive JSON query tool with live results

💯 Supports autocomplete, snippets, search & more!

🦀 Written in Rust & built with @ratatui_rs

⭐ GitHub: https://github.com/bellicose100xp/jiq

#rustlang #ratatui #tui #json #jq #cli #devtools #productivity