fix_json_null: Fix 'null' values in JSON

View source: R/read_json_zip.R

fix_json_nullR Documentation

Fix 'null' values in JSON

Description

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.

Usage

fix_json_null(json_object)

Arguments

json_object

An object read in from read_json().

Value

A corrected tibble with NA in place of the null.


Technomics/costmisc documentation built on Nov. 12, 2024, 8:05 a.m.