Save Proper JSON file for readablity #34

Merged
Hesham merged 3 commits from indent-json into master 2018-12-10 07:31:58 +01:00
Showing only changes of commit b9f9dd7cff - Show all commits

View File

@ -74,6 +74,7 @@ namespace OWTrack
{
try
{
//https://stackoverflow.com/questions/7947005/how-to-turn-on-indentation-when-writing-json-using-json-net
JsonConvert json = new JsonConvert();//Not tested
json.Formatting = Formatting.Indented;
File.WriteAllText(Paths.SAVES, json.SerializeObject(tracker));//check if (Indented) Parameter exists