Loading and saving data using the JSON format