Can confirm, still not fixed in B.02.17 (Xenial). Example:

$ sudo lshw -json -c display

  {
[snip .. 3 graphics cards]
  },
                                                                                
                
which is not JSON. I think the listing of multiple devices it the unsupported 
case. Should have been

[
  {
[snip .. 3 graphics cards]
  }
]

which has outer brackets, and no trailing comma.

-- 
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

Reply via email to