exports all links to json file