title: Bash/JQ parse error: Expected separator between values at line 1, column 254
body: <p>I'm getting a parse error: while executing the function</p>
  <p>Is this something to do with jq or bash error?</p>
  <pre><code>generate_readable_output() {
    mkdir -p smoke-test-logs/tmp
    counter=1
    error_length=`jq length smoke-test-logs/error-log.json`
    echo &quot;[&quot; &gt; smoke-test-logs/tmp/filds-output
    jq -c '.[]' smoke-test-logs/error-log.json | while read i; do
      msg=$(echo $i | jq -r '.msg')
      type=$(echo $i | jq -r '.name')
      echo &quot;{\&quot;title\&quot;: \&quot;$type\&quot;,\&quot;value\&quot;: \&quot;$msg\&quot;,\&quot;short\&quot;: false},&quot; &gt;&gt; smoke-test-logs/tmp/filds-output;
      if [ $counter -eq 20 ]
        then
          break
      fi ;
      counter=$(expr $counter + 1)
    done
    if [ $error_length -gt 20 ]
      then echo &quot;{\&quot;title\&quot;: \&quot;There are more...\&quot;,\&quot;value\&quot;: \&quot;There are $error_length issues need to take necessary actions immediately.\&quot;,\&quot;short\&quot;: false},&quot; &gt;&gt; smoke-test-logs/tmp/filds-output
    fi ;
    echo $(sed '$ s/.$//' smoke-test-logs/tmp/filds-output) &gt; smoke-test-logs/tmp/filds-output
    echo &quot;]&quot; &gt;&gt; smoke-test-logs/tmp/filds-output
  }
  </code></pre>
  <h1>sample error-log.json content</h1>
  <pre><code>[{&quot;name&quot;:&quot;single_schedule&quot;,&quot;hostname&quot;:&quot;ip-172-31-23-92&quot;,&quot;pid&quot;:22408,&quot;level&quot;:50,&quot;msg&quot;:&quot;Exception found while processing : Property address: Unit 43, 8-14 Fullerton Street, Woollahra Nsw 2025 Property Id: 95 Lease Id: 29 ErrorCode: 400 ErrorMessage 400 - \&quot;[{\\\&quot;errorCode\\\&quot;:400002,\\\&quot;message\\\&quot;:\\\&quot;Field Validation Error\\\&quot;,\\\&quot;details\\\&quot;:\\\&quot;Missing mandatory field dbc.\\\&quot;,\\\&quot;type\\\&quot;:\\\&quot;REQUEST_ERROR\\\&quot;,\\\&quot;field\\\&quot;:\\\&quot;dbc\\\&quot;}]\&quot;&quot;,&quot;time&quot;:&quot;2019-07-26T10:57:02.079Z&quot;,&quot;v&quot;:0},
  {&quot;name&quot;:&quot;single_schedule&quot;,&quot;hostname&quot;:&quot;ip-172-31-23-92&quot;,&quot;pid&quot;:22408,&quot;level&quot;:50,&quot;msg&quot;:&quot;Exception found while processing : Property address: 8 Chunooma Road, North Wahroonga Nsw 2076 Property Id: 96 Lease Id: 30 ErrorCode: 400 ErrorMessage 400 - \&quot;[{\\\&quot;errorCode\\\&quot;:400002,\\\&quot;message\\\&quot;:\\\&quot;Field Validation Error\\\&quot;,\\\&quot;details\\\&quot;:\\\&quot;Missing mandatory field dbc.\\\&quot;,\\\&quot;type\\\&quot;:\\\&quot;REQUEST_ERROR\\\&quot;,\\\&quot;field\\\&quot;:\\\&quot;dbc\\\&quot;}]\&quot;&quot;,&quot;time&quot;:&quot;2019-07-26T10:57:03.287Z&quot;,&quot;v&quot;:0},
  {&quot;name&quot;:&quot;single_schedule&quot;,&quot;hostname&quot;:&quot;ip-172-31-23-92&quot;,&quot;pid&quot;:22408,&quot;level&quot;:50,&quot;msg&quot;:&quot;Exception found while processing : Property address: Unit 17, 92 Parraween Street, Cremorne Nsw 2090 Property Id: 111 Lease Id: 38 ErrorCode: 400 ErrorMessage 400 - \&quot;[{\\\&quot;errorCode\\\&quot;:400002,\\\&quot;message\\\&quot;:\\\&quot;Field Validation Error\\\&quot;,\\\&quot;details\\\&quot;:\\\&quot;Missing mandatory field dbc.\\\&quot;,\\\&quot;type\\\&quot;:\\\&quot;REQUEST_ERROR\\\&quot;,\\\&quot;field\\\&quot;:\\\&quot;dbc\\\&quot;}]\&quot;&quot;,&quot;time&quot;:&quot;2019-07-26T10:57:05.402Z&quot;,&quot;v&quot;:0},
  {&quot;name&quot;:&quot;single_schedule&quot;,&quot;hostname&quot;:&quot;ip-172-31-23-92&quot;,&quot;pid&quot;:22408,&quot;level&quot;:50,&quot;msg&quot;:&quot;Exception found while processing : Property address: Unit 72, 1-3 Delmar Parade, Dee Why Nsw 2099 Property Id: 112 Lease Id: 41 ErrorCode: 400 ErrorMessage 400 - \&quot;[{\\\&quot;errorCode\\\&quot;:400002,\\\&quot;message\\\&quot;:\\\&quot;Field Validation Error\\\&quot;,\\\&quot;details\\\&quot;:\\\&quot;Missing mandatory field dbc.\\\&quot;,\\\&quot;type\\\&quot;:\\\&quot;REQUEST_ERROR\\\&quot;,\\\&quot;field\\\&quot;:\\\&quot;dbc\\\&quot;}]\&quot;&quot;,&quot;time&quot;:&quot;2019-07-26T10:57:07.500Z&quot;,&quot;v&quot;:0}]
  
  </code></pre>
  <h1>filds-output content</h1>
  <pre><code>[ {&quot;title&quot;: &quot;&quot;,&quot;value&quot;: &quot;&quot;,&quot;short&quot;: false}, {&quot;title&quot;: &quot;&quot;,&quot;value&quot;: &quot;&quot;,&quot;short&quot;: false}, {&quot;title&quot;: &quot;&quot;,&quot;value&quot;: &quot;&quot;,&quot;short&quot;: false}, {&quot;title&quot;: &quot;&quot;,&quot;value&quot;: &quot;&quot;,&quot;short&quot;: false}, {&quot;title&quot;: &quot;&quot;,&quot;value&quot;: &quot;&quot;,&quot;short&quot;: false}, {&quot;title&quot;: &quot;&quot;,&quot;value&quot;: &quot;&quot;,&quot;short&quot;: false}, {&quot;title&quot;: &quot;&quot;,&quot;value&quot;: &quot;&quot;,&quot;short&quot;: false}, {&quot;title&quot;: &quot;&quot;,&quot;value&quot;: &quot;&quot;,&quot;short&quot;: false}, {&quot;title&quot;: &quot;&quot;,&quot;value&quot;: &quot;&quot;,&quot;short&quot;: false}, {&quot;title&quot;: &quot;&quot;,&quot;value&quot;: &quot;&quot;,&quot;short&quot;: false}, {&quot;title&quot;: &quot;&quot;,&quot;value&quot;: &quot;&quot;,&quot;short&quot;: false}, {&quot;title&quot;: &quot;&quot;,&quot;value&quot;: &quot;&quot;,&quot;short&quot;: false}, {&quot;title&quot;: &quot;&quot;,&quot;value&quot;: &quot;&quot;,&quot;short&quot;: false}, {&quot;title&quot;: &quot;&quot;,&quot;value&quot;: &quot;&quot;,&quot;short&quot;: false}, {&quot;title&quot;: &quot;&quot;,&quot;value&quot;: &quot;&quot;,&quot;short&quot;: false}, {&quot;title&quot;: &quot;&quot;,&quot;value&quot;: &quot;&quot;,&quot;short&quot;: false}, {&quot;title&quot;: &quot;&quot;,&quot;value&quot;: &quot;&quot;,&quot;short&quot;: false}, {&quot;title&quot;: &quot;&quot;,&quot;value&quot;: &quot;&quot;,&quot;short&quot;: false}, {&quot;title&quot;: &quot;&quot;,&quot;value&quot;: &quot;&quot;,&quot;short&quot;: false}, {&quot;title&quot;: &quot;&quot;,&quot;value&quot;: &quot;&quot;,&quot;short&quot;: false}, {&quot;title&quot;: &quot;There are more...&quot;,&quot;value&quot;: &quot;There are 348 issues need to take necessary actions immediately.&quot;,&quot;short&quot;: false}
  ]
  </code></pre>
  <h1>error output</h1>
  <pre><code>parse error: Expected separator between values at line 1, column 254
  parse error: Expected separator between values at line 1, column 254
  parse error: Expected separator between values at line 1, column 245
  parse error: Expected separator between values at line 1, column 245
  </code></pre>