Comment 10 for bug 1405873

Revision history for this message
Vern Hart (vern) wrote :

I can confirm, this is still broken.

In my output, I'm missing the leading and trailing square bracket. Also, between some stanzas there are close and open curly braces (on the same line) without a comma in between.

Since those are the only two syntactical errors in the output I'm working with, this simple one-liner works around it:

(echo "["; lshw -json -C network | sed 's/} .*{/}, {/'; echo "]") | jq .