Neo4j JSON
Convert any formatto Neo4j JSON Convert from Neo4j JSONto any other format
Neo4j JSON is the JSON export of the APOC Core library for the Neo4j graph database, written by the Neo4j APOC procedures apoc.export.json.all, apoc.export.json.data, apoc.export.json.graph and apoc.export.json.query. Neo4j documents it as a format for JavaScript-based visualisation tools, for importing into other tools and for sharing query results.
The default variant is JSON Lines: each line is one JSON object for a single node or relationship. A node object has type "node", an id, a labels array (alphabetically ordered) and a properties map. A relationship object has type "relationship", an id, a label holding the relationship type, a properties map, and start and end objects with the id and labels of its two nodes. The jsonFormat setting also offers ARRAYJSON, JSON and JSONIDASKEYS. Query exports (apoc.export.json.query) write whatever the Cypher query returns, so their rows are not limited to nodes and relationships.
The format follows the Neo4j property graph model: a node has zero or more labels, and every relationship has exactly one type and one direction, from its start node to its end node; a relationship may connect a node to itself. Property values include lists, spatial points and temporal values such as dates and durations, which plain tabular formats like Edge List cannot carry.
The format is defined by the APOC documentation, not by a separate specification. File export is disabled by default (it needs apoc.export.file.enabled=true) and writes into the server's import directory. Neo4j advises against exporting points that have x/y coordinates with the WGS-84 coordinate system, as they are written as longitude/latitude.
Alternative Names: APOC JSON, Neo4j JSON, JSONL export
| Feature | Neo4j APOC JSON Export Format |
|---|---|
| Nodes | |
| Undirected Edges | |
| Directed Edges | |
| Hyperedges | |
| Parallel Edges | |
| Self-loops | |
| Edges on Edges | |
| Nested Graphs in Nodes | |
| Nested Graphs in Edges | |
| Nested Graphs in Graphs | |
| Node Labels | |
| Attributes on Nodes | |
| Attributes on Edges | |
| Attributes on Graphs | |
| Typed Edges | |
Tools(Read & Write)
Write-only Tools
Frequently Asked Questions
What is a Neo4j APOC JSON Export Format file?
A Neo4j APOC JSON Export Format file stores a graph — its nodes, edges and attributes — in the Neo4j APOC JSON Export Format format (also: APOC JSON, Neo4j JSON, JSONL export). See the feature table above for what it supports.
How do I open a Neo4j APOC JSON Export Format file?
Open it in a graph tool that supports Neo4j APOC JSON Export Format, or convert it to a format your tool reads. With GraphInOut you can convert Neo4j APOC JSON Export Format to GraphML, DOT, Connected JSON and more, right in your browser.
How do I convert a Neo4j APOC JSON Export Format file to another format?
Use the Convert from Neo4j APOC JSON Export Format link above: upload or paste your Neo4j APOC JSON Export Format file (input preset to Neo4j APOC JSON Export Format), choose a target format and download the result — free, no install.