Do not rely on line endings and use JSON for storing data. Fixes #2899
Do not rely on line endings and use JSON for storing data. Fixes #2899

MustafaCan/SMF2.1,margarett/SMF2.1,mkress/SMF2.1,mkress/SMF2.1,margarett/SMF2.1,georaldc/SMF2.1,mkress/SMF2.1,georaldc/SMF2.1,StealthWombat/SMF2.1-more-forkery,StealthWombat/SMF2.1-more-forkery,MustafaCan/SMF2.1