title: Write and read array data in CSV row
body: <p>I'm facing a problem and I can't solve it: I need to write a CSV file to process the CSV data. I'm doing it like this: </p>
  
  <pre class="lang-rb prettyprint-override"><code>payload = {name: 'Dimitrius', errors: ['error1'] }
  CSV.open(file_name, "a+") do |csv|
    csv.add_row(payload.values)
  end
  </code></pre>
  
  <p>The CSV file was created and populated like a charm \o/
  But, the array of <code>errors</code> in the CSV file was a 'string':</p>
  
  <pre class="lang-rb prettyprint-override"><code>csv_text = File.read(file_name)
  csv = CSV.parse(csv_text, headers: false)
  puts csv # [["Dimitrius", "[\"error1\"]"]
  </code></pre>
  
  <p>The problem is, I must create so much 'workarounds' to transform the string <code>"[\"error1\"]"</code> into a valid array :(</p>
  
  <p>My question is, this is the correct way to work with array values in CSV files?</p>