JSON, NULL values and as_tibble
When working with data provided by common APIs you will almost always get in contact with JSON formatted data. Using R’s rjson::fromJSON
will transform JSON to R’s lists.
So far so good. Converting those lists to tibble
using tibble::as_tibble
will fail when the JSON (and therefor the list) contains NULL values. So you havve to replace them before building the tibble.