Open tootrackminded opened 7 years ago
Did you figure out how to flatten these data frames? The JSON files have extra quotations around those data frames, and when I read them into to R using jsonlite::stream_in, they are read as characters, not data frames.
Hi all,
I'm currently having some issues with the JSON to CSV --> my main objective is to create a flat file where hours, categories, and attributes are also completely flat (and looking at the code, it seems like that is the intent of the script). However, running the code provided, the categories, attributes, and hours are still in nested form as opposed to creating new columns for each category/binary for each row.
Here's a summary of output:
With respect to the script, I'm using exactly what's given here (except hard coded file path instead of taking it as an input).
Any advice would be greatly appreciated!