colearendt / tidyjson

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

how to use enter_object in function ? #141

Open longhua8800w opened 1 year ago

longhua8800w commented 1 year ago

i tryed to change the param of enter_object():

tbl_json %>%  enter_object(  name1 )
tbl_json %>%  enter_object(  name2 )
……
tbl_json %>%  enter_object(  name k )

so i want to write a function to handle this ,give it a string or expression ,and it return a result. {{}} or enquo and !! failed ;
an variable of string failed ; map names vector to ~tbl_json %>% enter_object( .x) failed so i don't konw how to do this naturally