colearendt / tidyjson

Tidy your JSON data in R with tidyjson
Other
182 stars 14 forks source link

Add support for vectorized paths #101

Open colearendt opened 7 years ago

colearendt commented 7 years ago

For programming, it would be nice to allow for vectorized paths. At present, it is possible to workaround with do.call, but this does not work nicely in a pipeline.

I think a useful (and tidy) way of implementing would be the tidyeval framework that was recently added to the rlang package.

colearendt commented 7 years ago

Some thoughts on a readr-like approach:

The hope is that this could be combined together into a single spread_json function which has nice guess behavior like spread_all, but is also easily standardized like spread_values, but with less typing.