ChatGPT is pretty ok at converting data between representations, even very different ones. This is the only thing I ended up using it for — aggregating text data into JSON structures, converting iptables rules into nftables (or even pf/ipfw), translating an XML tree into YAML, etc etc.