Minor improvements to JSON file persistence.
Added comment