Bug 12861

Summary: Add --json option to ip2 functions
Product: Busybox Reporter: bobpaul <busybox.net>
Component: NetworkingAssignee: unassigned
Status: NEW ---    
Severity: enhancement CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description bobpaul 2020-05-05 20:56:33 UTC
Upstream ip2 supports the `--json` option to output to stdout as json rather than formatted text. This makes parsing the output a lot easier and more reliable in scripts.

Upstream syntax is with the `--json` option before the subcommand, such as:
`ip --json addr`, `ip --json route`, `ip --json link`, `ip --json tunnel`, `ip --json neigh`, `ip --json rule`.

It would be really nice to have this for use on embedded devices.