JSON input from command line?

I was hoping that some of the graphviz layout engines would be able to accept graphviz json output formats as these are easier to manipulate and generate from code. Am I correct that json input is not available from the command line?

That’s correct, we don’t have a JSON parser in our tools.

It would be an interesting exercise for someone to put a JSON parser (maybe based on a small implementation like The most simple JSON parser in C for small systems) on top of the graphviz cgraph library.

1 Like