Add 'prev' and 'next' links to the JSON data.