JSON FORMAT

Graphviz JSON

Graphviz JSON output format

Graphviz's JSON output, encoding graph structure (subgraphs, nodes, edges) and their attributes as JSON. Graphviz emits four variants (specification):

  • json0 — the same information as -Tdot; assumes the graph has already been processed by a layout algorithm.
  • json — the same information as -Txdot (adds computed layout coordinates and xdot drawing operations); also assumes a layout pass.
  • dot_json — like json0 but does not assume a layout pass; contains only the graph as given on input.
  • xdot_json — like json but does not assume a layout pass; the only xdot data present is whatever was already in the input.

Each objects/edges array lists subgraphs then nodes, with a _gvid index tracking position.

Alternative Names: json, json0, dot_json, xdot_json

File Extensions: Mimetype: application/json

Write-only Tools

Frequently Asked Questions

What is a Graphviz JSON output format file?

A Graphviz JSON output format file stores a graph — its nodes, edges and attributes — in the Graphviz JSON output format format (also: json, json0, dotjson, xdotjson). See the feature table above for what it supports.

How do I open a Graphviz JSON output format file?

Open it in a graph tool that supports Graphviz JSON output format, or convert it to a format your tool reads. With GraphInOut you can convert Graphviz JSON output format to GraphML, DOT, Connected JSON and more, right in your browser.

How do I convert a Graphviz JSON output format file to another format?

Use the Convert from Graphviz JSON output format link above: upload or paste your Graphviz JSON output format file (input preset to Graphviz JSON output format), choose a target format and download the result — free, no install.