delivering download data to citation.php as json