added save and load JSON functions to array