We have a file with one valid JSON objects per line which we will load using jsonlite
By default, the nested objects are stored as nested data frames.
The function jsonlite::flatten will flatten the resulting data frame.
Note that jsonlite imports purrr which has its own version of flatten.