title: Apache Camel: parsing csv files with multilines values
body: <p>I have a one-line csv with the second value composed by multiple lines:</p>
  
  <pre><code>field1,"this
  
  is still
  
  field2","field3"
  </code></pre>
  
  <p>What I would like to get using Apache Camel, it is a json like this (after parsing the file):</p>
  
  <pre><code>{"field1":"field1","field2":"this
  
  is still
  
  field2","field3":"field3"}
  </code></pre>
  
  <p>but using the following code:</p>
  
  <pre><code>from('something...')
      .transform(simple('/path/demooneline.csv', File.class))
          .unmarshal().bindy(BindyType.Csv, Demo.class)
          .marshal().json(JsonLibrary.Jackson).log('${body}')
  
  @CsvRecord(separator = ',')
  class Demo {
  
      @JsonView
      @DataField(pos = 1)
      private String field1
  
      @JsonView
      @DataField(pos = 2)
      private String field2
  
      @JsonView
      @DataField(pos = 3)
      private String field3
  
  }
  </code></pre>
  
  <p>I am getting back:</p>
  
  <pre><code>{"field1":"field1","field2":"this","field3":null},
  {"field1":"is still","field2":null,"field3":null},
  {"field1":null,"field2":"field3","field3":null}
  </code></pre>
  
  <p>that it looks like the csv separated in 3 lines,instead of 1 line with some fields delimited by quotes. @CsvRecord has "quote" as default. Is there a way to parse that kind of CSV with Camel (using or not bindy)?</p>