Recursively ensuring tibbles instead of data frames when parsing/manipulating nested JSON
问题 I have to deal with JSON documents that contain nested documents and at some level have an array which in turn contains individual documents that conceptionally would map back to "data frame rows" when reading/parsing the JSON in R. First order problem/question I'm looking for a way to ensure that either all data frames are always turned into tibbles or that at least the "leaf data frames" become tibbles while the the "parent data frames" are allowed to become lists for arbitrary nested