If you see this now and are interested in trying out, I'd encourage you to check out a more modern version of this sample here thanks to @joelbyford
https://github.com/joelbyford/CSVtoJSONcore
API App (v2) for use with Azure Logic Apps that takes a CSV file and returns a JSON Array for each row