Commit f083ed7
refactor: Use jq for JSON pretty printing if available
**Changed**: Raw query analysis JSON formatting
**Before**:
- Custom 60+ line Lua JSON pretty printer
- Always used regardless of jq availability
**After**:
- Try `jq` first if available (best formatting)
- Fallback to compact JSON if jq not installed
- Simpler, cleaner code (removed 60+ lines)
**Why jq**:
- Industry standard JSON formatter
- Better formatting than custom implementation
- Already installed on most dev systems
- If not available, compact JSON is acceptable
**User Impact**:
- Users with jq get nicely formatted JSON
- Users without jq get compact but functional JSON
- No custom formatter to maintain
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent e5284d1 commit f083ed7
1 file changed
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | | - | |
| 312 | + | |
313 | 313 | | |
314 | | - | |
315 | | - | |
316 | | - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
317 | 322 | | |
318 | 323 | | |
319 | | - | |
| 324 | + | |
320 | 325 | | |
321 | 326 | | |
322 | 327 | | |
| |||
0 commit comments