Overview

Connected JSON (CJ) is a JSON format for exchanging connected data (graphs, networks).
Permanent URL: J-S-O-N.org. Remember it as the connected version of JSON.org.

Full specification

https://j-s-o-n.org/connected-json/spec

JSON schema

https://j-s-o-n.org/schema/cj-schema.json

cj logo

CJ is a strict format, for interchange, where each construct has one way in JSON to express it.

Short Example
{ "$schema": "https://j-s-o-n.org/schema/cj-7.0.0.json",
  "graphs":
  [ { "id": "social",
      "label": { "entries": [ { "value": "Simple Social Network" } ] },
      "nodes": [
        { "id": "alice",
          "label": { "entries": [ { "value": "Alice" } ] }
        },
        { "id": "bob",
          "label": { "entries": [ { "value": "Bob" } ] }
        }
      ],
      "edges": [
        { "type": "knows",
          "endpoints": [
            { "node": "alice", "direction": "out" },
            { "node": "bob", "direction": "in" }
          ]
        }
      ]
  } ]
}
Example
Figure 1. Example
Import from JSON

For importing JSON graph formats, take a look at the Graph Entry Format, which is a relaxed format, for human authoring, where each graph construct has multiple ways to express it in JSON. Defines how to interpret a range of JSON graph structures as Connected JSON.

Import other Formats

On GraphInOut.com, you can convert other formats to and from CJ.