formats link from json