Fix save data implementation using json