Ugh, nested JSON is the worst. Here's a quick trick: after loading with `jsonlite`, use `str()` to see the structure. Helps you spot where things are hiding.
If you need to flatten, `rlist::list.flatten()` can sometimes work better than `jsonlite`'s built-in flattening.
And yeah, `purrr` is gold for this stuff. `map_depth()` lets you target specific levels.
Hope that saves your sanity!
If you need to flatten, `rlist::list.flatten()` can sometimes work better than `jsonlite`'s built-in flattening.
And yeah, `purrr` is gold for this stuff. `map_depth()` lets you target specific levels.
Hope that saves your sanity!
