Skip to content
Discussion options

You must be logged in to vote

Hi @HuangHam

I've had success using the {jsonlite} package to read json files into an R data frame. Then you can use R's built in write.csv or {readr}'s write_csv to export the file to csv format.

library(jsonlite)
df <- fromJSON('path/to/file.json')
write.csv(df, 'path/to/file.csv')

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@HuangHam
Comment options

Answer selected by HuangHam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants