From: Zhengyi Fu <i@fuzy.me>
To: netdev@vger.kernel.org
Subject: [BUG] iproute2 - ip -d -j tuntap outputs malformed JSON
Date: Fri, 21 Nov 2025 12:25:41 +0800 [thread overview]
Message-ID: <87jyzkvwoq.fsf@fuzy.me> (raw)
Hi iproute2 maintainers,
$ sudo ip -d -j tuntap
[{"ifname":"tun0","flags":["tun","persist"],"processes":["name":"ssh","pid":86812]}]
The “processes” value looks like it should be an array of objects, so
the inner braces seem to be missing:
[{"ifname":"tun0","flags":["tun","persist"],"processes":[{"name":"ssh","pid":86812}]}]
Could you confirm whether this is a formatting bug or if the output is
intentionally flattened?
Thanks!
next reply other threads:[~2025-11-21 21:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-21 4:25 Zhengyi Fu [this message]
2025-11-22 0:10 ` [BUG] iproute2 - ip -d -j tuntap outputs malformed JSON Stephen Hemminger
2025-11-22 15:49 ` Zhengyi Fu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87jyzkvwoq.fsf@fuzy.me \
--to=i@fuzy.me \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.