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