Skip to content

Commit

Permalink
Do not simplify json response as it leads to nested data frames
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfung committed Jun 25, 2021
1 parent 6ae1141 commit 27c938a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/attom_api.R
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ attom_api = function(path, query, apikey) {
if (httr::http_type(resp) != attomr.env$accept) {
warning("API did not return json", call. = FALSE)
}
parsed = jsonlite::fromJSON(httr::content(resp, 'text'))
parsed = jsonlite::fromJSON(httr::content(resp, 'text'), simplifyVector=FALSE)
## Print error message
if (httr::http_error(resp)) {
warning(
Expand Down

0 comments on commit 27c938a

Please sign in to comment.