AI-powered jq filter synthesis from input/output JSON examples.
You know what JSON transformation you want, but writing the jq filter is tricky? Just provide examples — JQ-By-Example synthesizes the filter for you.
pip install jq-by-exampleRequires jq binary: brew install jq (macOS) or apt install jq (Linux)
export OPENAI_API_KEY='sk-...'
jq-by-example \
--input '{"user": {"name": "Alice"}}' \
--output '"Alice"' \
--desc "Extract name"
# Output: .user.name- 🤖 LLM-Powered — Uses OpenAI, Anthropic, or local Ollama
- 🔄 Iterative Refinement — Automatically improves filters based on feedback
- ✅ Verified — Executes against real jq binary to ensure correctness
- 📊 Diagnostics — Detailed error classification and scoring
Full documentation: github.com/nulone/jq-by-example