This might be a very simple question but... I am downloading some json data from the web using
output <- httr::GET('http://api.blabla.com/json', query = list(myparams))
and I would like to save the content I receive to disk. How can I do that?
Trying to write to disk using
jsonlite::write_json does not work:
Error: No method asJSON S3 class: response
and in my RStudio environment the
output object appears as
Large response (10 elements, 10 mb)
Any ideas? Thanks!