moving json data files to csv