Skip to contents

Reads a JSON file into a tidylearn_data object. Expects the JSON to represent tabular data (array of objects or similar). Requires the jsonlite package.

Usage

tl_read_json(path, flatten = TRUE, ...)

Arguments

path

Path to a JSON file.

flatten

Logical. Automatically flatten nested data frames? Default is TRUE.

...

Additional arguments passed to jsonlite::fromJSON().

Value

A tidylearn_data object (a tibble subclass) with attributes tl_source, tl_format, and tl_timestamp.

Examples

# \donttest{
# data <- tl_read_json("path/to/data.json")
# }