Pro tip: `rjson` is another option for read json in r where values is a list. It’s less aggressive with flattening than `jsonlite`, so you might have more control.
For nested stuff, I write tiny helper functions with `[[` to drill down. Like:
```
get_nested <- function(x, path) {
Reduce(`[[`, path, init = x)
}
```
Works like a charm!
For nested stuff, I write tiny helper functions with `[[` to drill down. Like:
```
get_nested <- function(x, path) {
Reduce(`[[`, path, init = x)
}
```
Works like a charm!
