Added the JSON to write to the file more nicely.