If you're stuck with `jsonlite`, try `simplifyDataFrame = FALSE` in `fromJSON()`. Sometimes the auto-conversion to data frames messes things up.
For flattening, `jsonlite::flatten()` works, but it’s not perfect. You might need to manually unlist() or `purrr::pluck()` to get what you need.
Also, this guide saved me: [https://jennybc.github.io/purrr-tutorial...tutorial/).
For flattening, `jsonlite::flatten()` works, but it’s not perfect. You might need to manually unlist() or `purrr::pluck()` to get what you need.
Also, this guide saved me: [https://jennybc.github.io/purrr-tutorial...tutorial/).
