I'm guessing that the installed version of /sbin/ip on this computer is too old to support the -json command line option.
If you have the option of upgrading /sbin/ip to a current version then I expect that would allow the scan to proceed successfully to gather IP address details using this command.
(Did my reply solve the question? Click "ACCEPT AS SOLUTION" to help others find answers faster. Liked something? Click "KUDO". Anything expressed here is my own view and not necessarily that of my employer, Flexera.)