% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read.R
\name{tl_read_json}
\alias{tl_read_json}
\title{Read a JSON file}
\usage{
tl_read_json(path, flatten = TRUE, ...)
}
\arguments{
\item{path}{Path to a JSON file.}

\item{flatten}{Logical. Automatically flatten nested data frames? Default is
\code{TRUE}.}

\item{...}{Additional arguments passed to \code{jsonlite::fromJSON()}.}
}
\value{
A \code{tidylearn_data} object (a \link[tibble]{tibble} subclass)
with attributes \code{tl_source}, \code{tl_format}, and
\code{tl_timestamp}.
}
\description{
Reads a JSON file into a \code{tidylearn_data} object. Expects the JSON to
represent tabular data (array of objects or similar). Requires the
\pkg{jsonlite} package.
}
\examples{
\donttest{
# data <- tl_read_json("path/to/data.json")
}

}
