add missing JSONparse into snapshotToPrefs