Convert String to an Array in JSON file using Shell scripting


New Member
This is the sample json I have pasted here. I want all the IP address strings to be converted into an array. For example "" has to be converted to [""] everywhere in the JSON. There are multiple IPs in a JSON I am pasting one sample object from the JSON. But the IPs already in an Array should not be altered.

{"network_ip_v4_address": "","mac_address": "A0:12:34:45","network_ip_v4_address":["",""]}


Active Member


Members online