change json ipv4 and ipv6 format