change json to txt