title: Neo4j export whole database to JSON_LINES, ARRAY_JSON, JSON or JSON_ID_AS_KEYS
body: <p>I tried to use an APOC procedure from <a href="https://neo4j.com/labs/apoc/4.1/overview/apoc.export/apoc.export.json.all/" rel="nofollow noreferrer">here</a> to export the DB using the following:</p>
  <pre><code>CALL apoc.export.json.all(&quot;all.json&quot;,{useTypes:true})
  </code></pre>
  <p>I can successfuly export to JSONL. However, I am not able to change the JSON format to other available formats such as JSON_LINES, ARRAY_JSON, JSON or JSON_ID_AS_KEYS. According to the documentation the following should work but it does not:</p>
  <pre><code>CALL apoc.export.json.all(&quot;all.json&quot;,{config:{jsonFormat:'ARRAY_JSON'}})
  </code></pre>
  <p>The result of above procedure is in JSONL but not ARRAY_JSON.</p>
  <p>I have also tried the solution <a href="https://community.neo4j.com/t/apoc-export-json-query-jsonformat-setting-doesnt-work/35508" rel="nofollow noreferrer">here</a> but did not succeed.</p>
  <p>Cheers,</p>
  <p>A</p>