Convert json file into csv or vice versa.