calling publish returns the date of the publish in json.