added json validation for saves