Publicación
Comparte tu conocimiento.
DRAMA118
Jan 28, 2025
P&R expertos
How to get JSON output from a CLI tool for parsing?
I'm working with a standard CLI tool, but the output contains many boxes and lines, making it hard to parse for the results I care about. Is there an official way to get a JSON output or something similar that I can easily parse?
- Move CLI
2
1
Cuota
Comentarios
Respuestas
1doodee105
Jan 29 2025, 03:21Puede usar la --json
opción si está disponible. Devuelve los resultados de los comandos en formato JSON que son más fáciles de analizar.
2
Comentarios
Sabes la respuesta?
Inicie sesión y compártalo.