Able to save json to a text file