title: Split JSON array into separate files/objects
body: <p>I have JSON exported from Cassandra in this format.</p>
  
  <pre><code>[
    {
      "correlationId": "2232845a8556cd3219e46ab8",
      "leg": 0,
      "tag": "received",
      "offset": 263128,
      "len": 30,
      "prev": {
        "page": {
          "file": 0,
          "page": 0
        },
        "record": 0
      },
      "data": "HEAD /healthcheck HTTP/1.1\r\n\r\n"
    },
    {
      "correlationId": "2232845a8556cd3219e46ab8",
      "leg": 0,
      "tag": "sent",
      "offset": 262971,
      "len": 157,
      "prev": {
        "page": {
          "file": 10330,
          "page": 6
        },
        "record": 1271
      },
      "data": "HTTP/1.1 200 OK\r\nDate: Wed, 14 Feb 2018 12:57:06 GMT\r\nServer: \r\nConnection: close\r\nX-CorrelationID: Id-2232845a8556cd3219e46ab8 0\r\nContent-Type: text/xml\r\n\r\n"
    }]
  </code></pre>
  
  <p>I would like to split it to separate documents:</p>
  
  <blockquote>
    <p>{
            "correlationId": "2232845a8556cd3219e46ab8",
            "leg": 0,
            "tag": "received",
            "offset": 263128,
            "len": 30,
            "prev": {
              "page": {
                "file": 0,
                "page": 0
              },
              "record": 0
            },
            "data": "HEAD /healthcheck HTTP/1.1\r\n\r\n"
          }</p>
  </blockquote>
  
  <p>and </p>
  
  <blockquote>
    <p>{
            "correlationId": "2232845a8556cd3219e46ab8",
            "leg": 0,
            "tag": "sent",
            "offset": 262971,
            "len": 157,
            "prev": {
              "page": {
                "file": 10330,
                "page": 6
              },
              "record": 1271
            },
            "data": "HTTP/1.1 200 OK\r\nDate: Wed, 14 Feb 2018 12:57:06 GMT\r\nServer: \r\nConnection: close\r\nX-CorrelationID:
    Id-2232845a8556cd3219e46ab8 0\r\nContent-Type: text/xml\r\n\r\n"
          }</p>
  </blockquote>
  
  <p>I wanted to use <a href="https://stedolan.github.io/jq/%20JQ" rel="noreferrer">jq</a> but didn't find way how. </p>
  
  <p>Can you please advise way, how to split it by the document separator? </p>
  
  <p>Thanks, Reddy</p>