I am trying to to create a csv file in scala by getting data in the form of JsValue from a third part API. My method to save data to CSV file is :
def saveToC