transfer Json to text file