title: CSV to JSON Ruby Script?
body: <p>Does anyone know how to write a Ruby script that would convert a csv file to a json file?</p>
  
  <p>The CSV would be in this format:</p>
  
  <pre><code>Canon,Digital IXUS 70,"Epic, Epic 100",3x,Yes (lockable),Yes (lockable),Yes
  Canon, Digital IXUS 75,"Epic, Epic 100",3x,Yes (lockable),Yes (lockable),Yes
  Canon,Digital IXUS 80,"Epic, Epic 100",3x,Yes (lockable),Yes (lockable),Yes
  </code></pre>
  
  <p>and the JSON would need to result in this:</p>
  
  <pre><code>{ "aaData": [
  [ "Canon" , "Digital IXUS 70" , "3x" , "Yes (lockable)" , "Yes (lockable)" , "Yes"],
  [ "Canon" , "Digital IXUS 75" , "3x" , "Yes (lockable)" , "Yes (lockable)" , "Yes"],
  [ "Canon" , "Digital IXUS 80" , "3x" , "Yes (lockable)" , "Yes (lockable)" , "Yes"]
  ]} 
  </code></pre>