This PR adds a new json value to the timemachine restore--fmt command option, allowing the user to output the graph in JSON format directly.
This is useful for programming languages with native JSON support like javascript, avoiding the use of 3rd party deps to parse currently supported output format, and offers better performance as well.
This PR adds a new
json
value to thetimemachine restore
--fmt
command option, allowing the user to output the graph in JSON format directly.This is useful for programming languages with native JSON support like javascript, avoiding the use of 3rd party deps to parse currently supported output format, and offers better performance as well.
Example command:
Example output (after formatting):