Implement JSON class to save data.