hi i’m trying to convert and R tibble in a shiny app to a json.
i can use jsonlite::toJSON()
to do this
unfortunately the receipient requires the output in a different order.
i’ve tried converting the input from long to wide but this comes out all wrong.
the python code to create the json uses
df.to_dict(orient="list")
so i need an r equivalent.
not much experience with json and in a little hurry so help much appreciated
2
Answers
If @Æsad has the right end goal, then CRAN package rjsoncons
gets you there, too.