this has actually got worse, as it now (as of 19.10 / 02.18.85-0.3 at least) breaks when no class is used e.g.
$ lshw -json -quiet | python3 -m json.tool Expecting ',' delimiter: line 26, column 8 (char 785) lshw -xml | xmllint - seems to indicate xml output works ok, but the format is annoying :( -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1405873 Title: -json output not valid when -class filter used To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lshw/+bug/1405873/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs