This shows you the differences between two versions of the page.
— |
informatica:linux:json [2019/11/20 13:26] (current) jose created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Parsear json ====== | ||
+ | Para formatear toda linea | ||
+ | cat fichero.json|python -m json.tool | ||
+ | Para obtener un resultado (por ejemplo el inspect de docker) | ||
+ | cat fichero.json | jq -r '.[0].NetworkSettings.IPAddress' |