add methods for downloading and parsing JSON