Open jeremystan opened 8 years ago
Hi Jeremy, I'd love to see a more in-depth vignette. I've got highly complex jsons with variable structure to parse, and I think tidyjson could be a lot of help. Unfortunately, the examples I see are not enough for me to understand how to use the 'verbs' of tidyjson. I'd love to see an example, starting with reading a json from file, examining its structure, and looping (or not) through it to return a nice, tidy table.
The goal of this vignette is to cover the details of how to ensure tidyjson always returns the correct data frame structure (e.g., using spread_all
vs spread_values
), and how to throw meaningful errors when future JSON inputs don't conform to your expectations.
However, I have re-written the introduction vignette and added an additional vignette on visualizing JSON here: https://github.com/jeremystan/tidyjson/tree/master/vignettes.
Attached are the rendered vignettes - let me know if they are more helpful or if you still have fundamental questions.
Should:
spread_values
versusspread_all
is_json_X
functions to check inputs