-file for json

made a code to write the json data to another file
-the text file is the file that saves all the json data