all AI news
Tips on Adding JSON Output to Your CLI App
April 20, 2024, 9:43 p.m. |
Simon Willison's Weblog simonwillison.net
Tips on Adding JSON Output to Your CLI App
Kelly Brazil - also the author of jc, the neat CLI tool that converts the output of common Unix utilities such as dig into JSON - provides some useful do's and don'ts for adding JSON output as an option to a command-line tool.
Kelly recommends defaulting to arrays of flat objects - or newline-delimited objects - and suggests including an "unbuffer" option for streaming tools that discourages the OS from buffering …
app author brazil cli command json line tips tool unix utilities
More from simonwillison.net / Simon Willison's Weblog
uv pip install --exclude-newer example
12 hours ago |
simonwillison.net
Quoting Nathaniel Borenstein
2 days, 8 hours ago |
simonwillison.net
Slop is the new name for unwanted AI-generated content
2 days, 10 hours ago |
simonwillison.net
OpenAI Model Spec, May 2024 edition
2 days, 10 hours ago |
simonwillison.net
Modern SQLite: Generated columns
2 days, 12 hours ago |
simonwillison.net
Jobs in AI, ML, Big Data
Data Engineer
@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania
Artificial Intelligence – Bioinformatic Expert
@ University of Texas Medical Branch | Galveston, TX
Lead Developer (AI)
@ Cere Network | San Francisco, US
Research Engineer
@ Allora Labs | Remote
Ecosystem Manager
@ Allora Labs | Remote
Founding AI Engineer, Agents
@ Occam AI | New York