How to read JSON in R where values is a list? Need help parsing nested data! or Struggling to read JS

16 Replies, 1863 Views

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/).

Messages In This Thread



Users browsing this thread: 1 Guest(s)