JSON specification for representing a graph structure