Updated loadSaveJSON example to the new API