fix the json for the mail