Search code examples
javajsonswinggraphdot

Is there any way to represent connections between json objects with a graph?


I have a java program and i am parsing a json file. Because there are some dependencies between the json objects (they are procedures that must be executed so some of them depends on others). I want to make a graph so i can represent this. Is there any known way? I tryed mxgraph (jgraph) but i cannot make the representation.

Here is a simple json format

 {
  "blueprint": 
    {
     "1" : { "depends" : null },
     "2" : { "depends" : "1" },
     "3" : { "depends" : { "2" , "1"} },
    }
  }

Solution

  • Answering this old question of mine just in case somebody needs it.

    graphviz.org with dot language was the way I tackled it.

    Thank you everyone for the comments.