title: BASH: Convert multi lined (JSON) block into a single line string
body: <p>I have below JSON output written into "out" file and the content is as below.</p>
  
  <p>$ cat out</p>
  
  <pre><code>{
      "columns": [
          "Tests",
          "Errors",
          "Mean Test Time (ms)",
          "Test Time Standard Deviation (ms)",
          "TPS",
          "Peak TPS"
      ],
      "status": {
          "description": "Collection stopped",
          "state": "Stopped"
      },
      "tests": [
          {
              "description": "Cheetah client test",
              "statistics": [
                  0,
                  0,
                  "NaN",
                  0.0,
                  0.0,
                  0.0
              ],
              "test": 1
          },
          {
              "description": "Reads 95%",
              "statistics": [
                  304000,
                  0,
                  8.7931875,
                  7.948696618436826,
                  6907.677974959667,
                  13594.0
              ],
              "test": 101
          },
          {
              "description": "Writes 5%",
              "statistics": [
                  16000,
                  0,
                  9.963375,
                  9.92775949594747,
                  363.5619986820878,
                  1638.0
              ],
              "test": 102
          }
      ],
      "totals": [
          320000,
          0,
          8.851696875,
          8.063234652303947,
          7271.239973641756,
          14259.0
      ]
  }
  </code></pre>
  
  <p>I need stats pertaining to the block of description "reads 95%" arrange in below format and assign to a string variable using a BASH script. </p>
  
  <pre><code>var=304000,0,8.7931875,7.948696618436826,6907.677974959667,13594.0
  </code></pre>
  
  <p>Your help is very much appreciated.</p>