title: How to convert CSV to JSON using Apache Nifi?
body: <p>How to convert CSV to JSON using Apache Nifi?<br>
  I have a CSV file and I need to covert to json. How to draw a normal flow diagram. Please tell me the properties and figure details.
  My understanding is 4 block has to there. 1.GenerateFLow 2.ConverttoAvro 3.Converttojson 4.Savethefile. I am new to the Nifi and I have installed nifi, struggling to configure</p>
  
  <pre><code>"model","speed","mileage"
  "audi",4,2
  "benz",4,10
  "bmw",7,4
  "jaguar",7,22
  </code></pre>
  
  <p>My Json</p>
  
  <pre><code>[
    {
      "model": "audi",
      "speed": 4,
      "mileage": 2
    },
    {
      "model": "benz",
      "speed": 4,
      "mileage": 10
    },
    {
      "model": "bmw",
      "speed": 7,
      "mileage": 4
    },
    {
      "model": "jaguar",
      "speed": 7,
      "mileage": 22
    }
  ]
  </code></pre>
  
  <p>I went through <a href="https://stackoverflow.com/questions/37928832/convert-a-csv-file-to-json-using-apache-nifi">Convert a CSV file to JSON using Apache NiFi</a></p>