View source: R/read_json_zip.R
fix_json_null | R Documentation |
fix_json_null()
replaces 'null' values in the JSON with an NA. This
is needed for single row tables in the JSON with a null value. In this case,
read_json(..., simplifyVector = FALSE)
returns a list instead
of a data.frame because of the 'null'. This function takes that list, replaces the 'null'
with an NA
and returns the data.frame.
fix_json_null(json_object)
json_object |
An object read in from |
A corrected tibble with NA
in place of the null.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.