How do I print a part of a json file
[
{ "ip": "192.168.0.135", "timestamp": "1662977246", "ports": [ {"port": xxx, "proto": "tcp", "status": "open", "reason": "syn-ack", "ttl": 64} ] }
,
{ "ip": "192.168.0.136", "timestamp": "1662977246", "ports": [ {"port": xxx, "proto": "tcp", "status": "open", "reason": "syn-ack", "ttl": 64} ] }
]
In this case I want to save all the ips from the file into another json.