Yes, the traceroute debug tool actually has a “json mode” that was the start on that (a really really long time ago.
https://trace.ntppool.org/traceroute/8.8.8.8?json=1
The motivation for writing it was to have a tool that could output traceroute’s in a format the computer could think about.