I tried using $iterate() as you suggested, but I still can't seem to figure out a "built-in" way to ensure that "tabular data" is parsed as tibbles instead of data.frames.
Can/do I need to reach in deeper into things like jsonlite::simplify() to achieve this or is this simply something that needs to happen after data reads from MongoDB?
Hi Jeroen,
my issue/question is related to https://github.com/jeroen/jsonlite/issues/253.
I tried using
$iterate()
as you suggested, but I still can't seem to figure out a "built-in" way to ensure that "tabular data" is parsed astibble
s instead ofdata.frame
s.Can/do I need to reach in deeper into things like
jsonlite::simplify()
to achieve this or is this simply something that needs to happen after data reads from MongoDB?Here's what I tried (also put it down as a Stackoverflow post)
Example
JSON data to put into file
dump.json
Importing JSON into MongoDB
This is what you should see within MongoDB
Query via
$find()
Desired result
If I try to do that via
dplyr::mutate()
orpurrr::map*_df()
, I get theError: Column
is of unsupported class data.frame
error.Query via
$iterate()