Added : save current profile into a json file