Added JSON download to fileio
Adapted json to the one downloaded from the server