Added json support to save/load data