Script to convert json object format file to csv file