Working with JSON formatting rather than .txt